19 Dec
2018
19 Dec
'18
8:44 p.m.
John Maddock wrote:
I get that, and haven't looked in detail at the code yet, but for the record, for Math heavy code, "if constexpr" is probably more useful than anything else in C++11 and 14....
In the specific case of https://github.com/pulver/autodiff/blob/master/include/boost/math/autodiff.h... as far as I can see you can just drop the `constexpr` part from `if constexpr` on pre-17 compilers and everything would work. But that's just from a quick glance, I haven't tried it.