Hi, I just wanted to ask a simple question. Can I make a constructor that accepts variadic arguments?
This is a discussion on Variadic Argument in a Constructor within the C++ Programming forums, part of the General Programming Boards category; Hi, I just wanted to ask a simple question. Can I make a constructor that accepts variadic arguments?...
Hi, I just wanted to ask a simple question. Can I make a constructor that accepts variadic arguments?
Yes. Be careful, though. There is often a better way to do things than to use variadic arguments.
Ah thanks. I know that using variadic arguments is not a good way to code. But I need it right now unfortunately.Originally Posted by Daved