Boost logo

Boost Users :

Subject: Re: [Boost-users] [Lambda] Lost in lambda land!
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2010-03-24 06:29:26


On Wed, Mar 24, 2010 at 9:19 AM, Ovanes Markarian <om_boost_at_[hidden]>wrote:

> void do_smth(A& a)
> {
> // do smth.
> }
>
> do_smth(A(7));
>
> So the best boost::bind overload which compiler finds is that which accepts
> A const& => only const members are allowed to be accessed.
>
>
Yes, I constructed an equivalent example, and then couldn't see the wood for
the
trees! Ok, I know I'm having an aberrant moment here, but remind me why a
temporary
can't be passed as a non-const reference.

- Rob.



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