mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Change auto
to void
to satisfy some compilers about definition ordering
This commit is contained in:
parent
dd45e5cfbd
commit
59f38376b9
@ -109,11 +109,11 @@ public:
|
||||
return chandler.exchange(h); }
|
||||
auto get_handler() -> handler { return chandler; }
|
||||
|
||||
auto expects(bool b) { assertion(b); }
|
||||
auto ensures(bool b) { assertion(b); }
|
||||
void expects(bool b) { assertion(b); }
|
||||
void ensures(bool b) { assertion(b); }
|
||||
|
||||
private:
|
||||
auto assertion(bool b) { if (!b) chandler.load()(); }
|
||||
void assertion(bool b) { if (!b) chandler.load()(); }
|
||||
std::atomic<handler> chandler;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user