Boost logo

Boost Users :

Subject: Re: [Boost-users] [proto] const-ness of references
From: Eric Niebler (eric_at_[hidden])
Date: 2010-03-03 19:12:26


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.

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.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