Boost logo

Boost :

Subject: Re: [boost] Yap's formal review is starting now!
From: Zach Laine (whatwasthataddress_at_[hidden])
Date: 2018-02-17 19:01:13

On Sat, Feb 17, 2018 at 9:32 AM, Peter Dimov via Boost <
boost_at_[hidden]> wrote:

> Zach Laine wrote:
> It's not quite as nice as using std::max() as you wrote previously,
>> because of course std::max() is not yet constexpr.
> It is, but only under C++17.

I hadn't noticed. I sort of assumed that it was getting added along with
all the algorithms constexpr-fied for C++20 in Albuquerque. According to
cppreference, it's been constexpr since C++14.

Anyway, I can't get the compiler to treat the result of get_arity as a
constant expression using std::max, even in C++17 mode with a recent-ish
Clang, so I'm leaving the example as-is for now.


Boost list run by bdawes at, gregod at, cpdaniel at, john at