Remember to disable exceptions before checking final value

This commit is contained in:
Daniel James committed 2017-05-05 00:46:07 +01:00
1 parent 47a8c3fc67
commit 6ef17a0f0e
8 files changed
+58 -9

No files matched your search

+2 -1
View File
@@ -23,7 +23,8 @@ template <class T> struct self_swap_base : public test::exception_base
typedef T data_type;
T init() const { return T(values.begin(), values.end()); }
void run(T& x) const {
void run(T& x) const
{
x.swap(x);
DISABLE_EXCEPTIONS;