From 8bd828744f9331230d1d3c131b2c8b55910c59d4 Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Fri, 18 Dec 2020 11:25:04 -0800 Subject: [PATCH] Remove constexpr again to see what the failures were --- include/gsl/assert | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gsl/assert b/include/gsl/assert index 201b0d6..f1fd7bc 100644 --- a/include/gsl/assert +++ b/include/gsl/assert @@ -112,10 +112,10 @@ public: auto set_handler(handler h) -> handler { return chandler.exchange(h ? h : []()noexcept{}); } auto get_handler() -> handler { return chandler; } - constexpr void expects (bool b) { assertion(b); } - constexpr void ensures (bool b) { assertion(b); } + void expects (bool b) { assertion(b); } + void ensures (bool b) { assertion(b); } private: - constexpr void assertion(bool b) { if (!b) chandler.load()(); } + void assertion(bool b) { if (!b) chandler.load()(); } #ifdef __cpp_guaranteed_copy_elision std::atomic chandler; // current handler