Boost logo

Boost :

Subject: Re: [boost] [hana] some notes, not a review
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2015-06-19 04:40:45


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk