
12 Jun
2010
12 Jun
'10
10:01 p.m.
On 6/12/2010 5:34 PM, Mathias Gaunard wrote:
For captures, I don't see how anyone would want to do anything but capture everything by reference.
function<int(int)> plus_i( int i ) { return _1 + i; } If you capture i by reference, this code will compile but crash at runtime. Have fun debugging it! :-) -- Eric Niebler BoostPro Computing http://www.boostpro.com