19 Jun
2015
19 Jun
'15
8:40 a.m.
On 18/06/2015 16:50, Phil Endecott wrote:
Secondly, we're moving towards a future where a lot of what previously required TMP can now be done using "regular" C++ code qualified with constexpr. I've just replaced a fair chunk of my crufty old TMP code with constexpr and it is like a breath of fresh air. Against that background, it might be worthwhile to structure your examples by showing what Hana (and TMP in general, perhaps) can do that constexpr cannot do, i.e. start with an example using constexpr and extend it to add features not possible with constexpr.
What template meta-programming were you able to replace by constexpr? As far as I'm concerned, I've yet to see a use case where constexpr is anything but an optimization hint.