Boost logo

Boost Users :

Subject: Re: [Boost-users] [proto] const-ness of references
From: Manjunath Kudlur (keveman_at_[hidden])
Date: 2010-03-03 19:20:48


On Wed, Mar 3, 2010 at 4:12 PM, Eric Niebler <eric_at_[hidden]> wrote:
> On 3/4/2010 6:51 AM, Manjunath Kudlur wrote:
> <snip>
>>
>> I can merrily call assign()(a=10) and I get the expected behaviour.
>> But when I call assign()(a(20)), I get a compilation error saying that
>> there is no match for operator()(const Var<int>  &, const int&). Why
>> is that when I call proto::_value(proto::_left) on a proto::function
>> expression, a *const* reference gets passed to the transform?
>
> This is a bug. Thanks for reporting it. It's now fixed on trunk.

Thanks for fixing it. I like the fresh off the oven smell of Proto ;)

Manjunath

> --
> Eric Niebler
> BoostPro Computing
> http://www.boostpro.com
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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