Went back to old-style declaration for older compilers that don't do C++17 guaranteed copy elision

A concession to older compilers.
This commit is contained in:
Herb Sutter 2020-12-17 11:58:53 -08:00
parent 0cbb9e221d
commit dd45e5cfbd

View File

@ -117,10 +117,10 @@ private:
std::atomic<handler> chandler; std::atomic<handler> chandler;
}; };
auto static Default = contract_group{ &gsl::details::terminate }; static contract_group Default { &gsl::details::terminate };
auto static Bounds = contract_group{ Default.get_handler() }; static contract_group Bounds { Default.get_handler() };
auto static Null = contract_group{ Default.get_handler() }; static contract_group Null { Default.get_handler() };
auto static Testing = contract_group{ Default.get_handler() }; static contract_group Testing { Default.get_handler() };
} // namespace gsl } // namespace gsl