From: Ivan Matek (libbooze_at_[hidden])
Date: 2021-08-21 19:13:51
P.S. I think gcc might have been reason why I misremembered how assert does
or does not work in constexpr, so maybe
that is the reason why it is commented out in clamp?
It was fixed few years ago(GCC 9).
On Sat, Aug 21, 2021 at 9:05 PM Ivan Matek <libbooze_at_[hidden]> wrote:
> On Sat, Aug 21, 2021 at 5:56 PM Peter Dimov via Boost <
> boost_at_[hidden]> wrote:
>> It does. https://www.godbolt.org/z/KhPja6cEs
> Ah my mistake. :(
> Do you then maybe know why boost clamp has commented out the assert in
> I presumed it is to avoid problems with assert and constexpr, but as you
> now I learned assert works fine since C++14.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk