|
Boost : |
From: Ivan Matek (libbooze_at_[hidden])
Date: 2021-08-21 19:05:42
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
implementation?
https://github.com/boostorg/algorithm/blob/c9077bd49580bddfaa8a5c71abc4022a2b09d972/include/boost/algorithm/clamp.hpp#L54
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