
24 Mar
2010
24 Mar
'10
10:29 a.m.
On Wed, Mar 24, 2010 at 9:19 AM, Ovanes Markarian
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.