|
Boost Users : |
Subject: Re: [Boost-users] Constraining unordered template constructors
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2013-05-12 12:28:32
> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net