Subject: Re: [boost] [Phoenix-3] Is Actor assignable?
From: Joel de Guzman (joel_at_[hidden])
Date: 2011-01-22 18:09:46
On 1/23/2011 12:40 AM, Michel MORIN wrote:
> Joel de Guzman wrote:
>> On 1/21/2011 8:39 PM, Michel MORIN wrote:
>>> (In Phoenix 2, boost::phoenix::value<T> is not default constructible, and
>>> the above iterator does not satisfy the ForwardIterator requirements too.)
>> That is true. phoenix::value is not default constructible. While it is
>> easy to make it so, I'm not sure it is a good idea as it will potentially
>> break existing code which holds values that are not default constructible.
>> I'd argue that phoenix3 should follow.
>> OTOH, I think a good compromise is to allow default construction on
>> types and POD structs. That will solve your problem. I can do that now with
> That makes my life easier :)
> May I ask you to do that?
> Thanks, Joel.
Done. I added unconstrained default construction anyway as it seems to
be the way forward to V3.
-- Joel de Guzman http://www.boostpro.com http://boost-spirit.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk