
23 Jul
2004
23 Jul
'04
6:15 p.m.
On Jul 23, 2004, at 2:10 PM, Howard Hinnant wrote:
On the constructor side, this could look like:
upgradable_lock ul(mut); scoped_lock sl(ul); // block, we have this in the current spec scoped_lock sl(ul, try_lock); // proposed to replace sl(try_move(ul))
Oops, forgot the cast-to-rvalue on ul: upgradable_lock ul(mut); scoped_lock sl(move(ul)); // block, we have this in the current spec scoped_lock sl(move(ul), try_lock); // proposed to replace sl(try_move(ul)) -Howard