Forgive me if this has been answered already, as I couldn\'t find it...
Basically I have an object that needs to take a variadic argument list in it\'s constructor
class Blob
{
std::vector _v;
public:
template
Blob(Args&&... args)
: _v(std::forward(args)...)
{ }
};
int main(void)
{
const char * shapes[3] = { "Circle", "Triangle", "Square" };
Blob b1(5, "C++ Truths");
Blob b2(shapes, shapes+3);
}
Example from C++11 Truths looks simple enough...;) Not a complete solution but might give you some ideas.