Boost logo

Proto :

Subject: Re: [proto] Problems with unary function node
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-10-22 18:02:13


On 10/18/2011 05:53 AM, Eric Niebler wrote:
> On 10/12/2011 2:24 PM, Mathias Gaunard wrote:
>> There seems to be a significant problem with the unary function node
>> (and by that I mean (*this)() ) generated by proto::extends and
>> BOOST_PROTO_EXTENDS_USING_FUNCTION().
> <snip>
>
> Sorry for the delay, and I'm afraid I don't have news except to say that
> this is on my radar. I hope to look into this soon. But if someone were
> to beat me to it, that'd be pretty awesome. :-)
>

I don't think it can really be fixed in C++03.
In C++11 though, it's pretty easy, you can just make it a template with
a default template argument.


Proto list run by eric at boostpro.com