Boost logo

Boost :

Subject: Re: [boost] [hana] some notes, not a review
From: Robert Ramey (ramey_at_[hidden])
Date: 2015-06-19 07:17:06


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.

Hmmm - what about all the mpl arithmetic functions built around mpl
integral constants? All that gets replace by easy to understand compile
time expressions which can be used in other template expressions? This
simplifies things immensely.

Robert Ramey


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