Boost logo

Boost :

Subject: Re: [boost] Metaprogramming: parameter pack expansion/evaluation trick
From: Paul Fultz II (pfultz2_at_[hidden])
Date: 2015-07-03 13:42:16

> > 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
arguments in order from left to right, even on compilers that don't
the order of {} yet:


View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at