forked from microsoft/GSL
Change auto to void to satisfy some compilers about definition ordering
This commit is contained in:
+3
-3
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user