
17 Dec
2011
17 Dec
'11
4:34 p.m.
For what it's worth, I've been doing some experiments with constexpr in GCC and it's now possible to compute maximally-precise statically-initialized constants for any floating type via series expansion, at compile-time. Crazy stuff.
Crazy indeed - can you have loops in such code? Either way I'd love to see some example code if that's possible, Cheers, John.