26 May
2015
26 May
'15
1:48 a.m.
I've got everything working except the sequence:
promise<int> p; p.set_value(5); return p.get_future().get();
This should reduce to a mov $5, %eax, but currently does not for an unknown reason. I'm just about to go experiment and see why.
I asked this question many times before: what is this good for in practice except for demonstrating some impressive compiler optimization capabilities? If I need to return the number '5' I'd usually write return 5; in the first place... Regards Hartmut --------------- http://boost-spirit.com http://stellar.cct.lsu.edu