Boost logo

Boost Users :

Subject: Re: [Boost-users] [Proto] Turnign grammar into primitive transform : _default is being naughty with me :(
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-03-19 13:50:55


Eric Niebler wrote:
> All the temporary expression objects Proto creates are const-qualified
> rvalues so they can be passed to transforms. Well, *almost* all, the
> exception being functional::make_expr and functional::unpack_expr.
> That's an oversight. I just fixed it on trunk.
>
> To work around your problem, you need to change line 109 of
> not_working.cpp to first save the result of unpack to a temporary and
> then pass that to rec.
That's perfect Eric, everything work like a charm now :)

-- 
___________________________________________
Joel Falcou - Assistant Professor
PARALL Team - LRI - Universite Paris Sud XI
Tel : (+33)1 69 15 66 35

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