mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
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:
parent
0cbb9e221d
commit
dd45e5cfbd
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user