Daniel Wallin
David Abrahams wrote:
"Johan Nilsson"
writes: I personally very rarely use constant/reference class members, but understand your concerns. Perhaps a BOOST_PARAMETER_RESTRICTED_CTOR (or similarly ugly-named) macro could be included in the library?
I don't think there's a real need to uglify. Usually ctors are pretty simple anyway; I think this macro should just generate the ctor overloads directly instead of doing any forwarding. Daniel, what do you think about that?
I'm not sure I understand what you are suggesting. Right now we have the new macro system that has constructors that forward to a base class. What are you suggesting that differs from that?
Using the macros to generate a family of ctors that replicate the same base/member initializer list and function body, so no base class is needed. -- Dave Abrahams Boost Consulting www.boost-consulting.com