On Wed, Mar 24, 2010 at 9:19 AM, Ovanes Markarian <om_boost@keywallet.com> 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.