Hello all,
I've only just started reading about C++0x. I'm trying to make a function that takes as many arguments as the caller likes, but they're all from the same type. Let's say integers for now.
Now, I tried something like this, but this doesn't work:
Something like this does, but doesn't take care of everything being the same type:Code:void f(int... arguments) { }
Any ideas on how to get that to work?Code:template<typename ... T> void f(T... arguments) { }
Thanks in advance



LinkBack URL
About LinkBacks



