Help me please! I am trying to make a function, which takes different quantity of parameters, but all parameter have same type std::pair
Here a code:
void pro(std::pair<int, int*> p, ...) { va_list uk_arg; va_start(uk_arg,p); std::pair<int,int*> l; while((l = va_arg(uk_arg,std::pair<int,int*>))!=-1) { show(l.first); show(*l.second); } va_end(uk_arg); } But this code is not working. I'm receiving an error like "not enought arguments for class template std::pair"