From dd45e5cfbd7042aa10b28cee5724a3758d66dc6a Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Thu, 17 Dec 2020 11:58:53 -0800 Subject: [PATCH] Went back to old-style declaration for older compilers that don't do C++17 guaranteed copy elision A concession to older compilers. --- include/gsl/assert | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/gsl/assert b/include/gsl/assert index 9d0d3da..7d05044 100644 --- a/include/gsl/assert +++ b/include/gsl/assert @@ -117,10 +117,10 @@ private: std::atomic chandler; }; -auto static Default = contract_group{ &gsl::details::terminate }; -auto static Bounds = contract_group{ Default.get_handler() }; -auto static Null = contract_group{ Default.get_handler() }; -auto static Testing = contract_group{ Default.get_handler() }; +static contract_group Default { &gsl::details::terminate }; +static contract_group Bounds { Default.get_handler() }; +static contract_group Null { Default.get_handler() }; +static contract_group Testing { Default.get_handler() }; } // namespace gsl