Remember to disable exceptions before checking final value

This commit is contained in:
Daniel James
2017-05-05 00:46:07 +01:00
parent 47a8c3fc67
commit 6ef17a0f0e
8 changed files with 58 additions and 9 deletions
+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;