From c78ad8661c1a036310efb5d26f935e1776f25ead Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Fri, 18 Dec 2020 12:18:23 -0800 Subject: [PATCH] Added "vestigial" comments for downlevel feature test workarounds --- include/gsl/assert | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gsl/assert b/include/gsl/assert index 8f71490..91f43b6 100644 --- a/include/gsl/assert +++ b/include/gsl/assert @@ -105,19 +105,19 @@ class contract_group { public: #ifdef __cpp_noexcept_function_type using handler = void (*)() noexcept; -#else +#else // VESTIGIAL, remove when no longer needed for downlevel compilers using handler = void (*)(); #endif #if defined(__cpp_constexpr) && __cpp_constexpr >= 201806 constexpr contract_group (handler h) { set_handler(h); } -#else +#else // VESTIGIAL, remove when no longer needed for downlevel compilers constexpr contract_group (handler h) : chandler(h ? h : []()noexcept{}) { } #endif #if __cplusplus >= 202002L constexpr auto set_handler(handler h) -> handler { return std::exchange(chandler, h ? h : []()noexcept{}); } -#else +#else // VESTIGIAL, remove when no longer needed for downlevel compilers constexpr auto set_handler(handler h) -> handler { auto old = chandler; chandler = h ? h : []()noexcept{}; return old;