Hi,
this is probably a useless problem but it stuck on my mind for few hours.
I wanna write a function which accepts some (POD) arguments, convert them to string and return the concatenation. for example
template<typename A, typename B>
string ToString(A a, B b)
{
stringstream ss;
ss << a << b;
return ss.str();
}
pretty easy, huh? but it get pretty tough (for me of course) when I wanna write the same function with unknown number of arguments.
is it even possible? any solution?