
12 May
2013
12 May
'13
4:28 p.m.
I have a class that I want to have accept 0-5 arguments in any order for it's constructor. Each argument is a const references to one of 5 possible class types. All arguments must be distinct in type, passing the same type twice in an error. Passing an argument that is not one of the 5 supported types is also an error.
How do you go about implementing something like this?
Have you looked at the Boost.Parameter library? [1] Regards, Nate [1] http://www.boost.org/doc/libs/1_53_0/libs/parameter/doc/html/index.html