3 Jul
2015
3 Jul
'15
5:42 p.m.
But unfortunately there's no way to force the compiler to evaluate expressions in constructor call from left to right. So it did not work on GCC (but work on Clang).
« []
There is. Just use {} and it's guaranteed to evaluate the args from left to right.
Also, just as a note, the Fit library has `apply_eval` that will evaluate the arguments in order from left to right, even on compilers that don't guarantee the order of {} yet: http://fit.readthedocs.org/en/latest/apply_eval/index.html Paul -- View this message in context: http://boost.2283326.n4.nabble.com/Metaprogramming-parameter-pack-expansion-... Sent from the Boost - Dev mailing list archive at Nabble.com.