Boost logo

Boost :

Subject: Re: [boost] [hana] some notes, not a review
From: Peter Dimov (lists_at_[hidden])
Date: 2015-06-19 19:35:38


On 6/19/15 1:40 AM, Mathias Gaunard wrote:
> 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.

In

http://pdimov.com/cpp2/simple_cxx11_metaprogramming_2.html

I show one constexpr use that isn't an optimization hint. It involves
traversing a constexpr array of bools at compile time.


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