|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2006-03-07 14:29:10
Daniel Wallin <dalwan01_at_[hidden]> writes:
> David Abrahams wrote:
>> "Johan Nilsson" <r.johan.nilsson_at_[hidden]> 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
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