|
Boost : |
Subject: Re: [boost] phoenix::bind
From: Joel de Guzman (joel_at_[hidden])
Date: 2008-09-29 22:21:07
Peter Dimov wrote:
> Joel de Guzman:
> ...
>> I can definitely make sure that all those are supported.
>> I supported the lambda tests in phoenix.
>
> Unfortunately, the Lambda tests are incomplete, as they do not cover its
> most frequently encountered problems. Phoenix does seem to handle
> abstract classes fine, which is good, but it still has trouble with
> smart pointers:
>
[snip code]
Indeed.
>
> The problem on the third line is probably caused by the rvalue-ness of
> px.get(). Still, boost::bind can compile it today, so Phoenix should,
> too. :-)
Agreed.
> Incidentally, if I #include both boost/bind.hpp and phoenix under VC7.1,
> I get errors in composite.hpp due to its use of _1 as an argument name.
> I understand that this is caused by bind.hpp and that it's probably a
> compiler issue, but a simple rename might fix it.
I'll make sure all these issues are ironed out.
Regards,
-- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk