diff options
Diffstat (limited to 'src/mongo/unittest/unittest.h')
-rw-r--r-- | src/mongo/unittest/unittest.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/unittest/unittest.h b/src/mongo/unittest/unittest.h index bb31bfa30ed..b5f6f3eb850 100644 --- a/src/mongo/unittest/unittest.h +++ b/src/mongo/unittest/unittest.h @@ -39,6 +39,7 @@ #include <string> #include <vector> +#include <boost/config.hpp> #include <boost/noncopyable.hpp> #include <boost/scoped_ptr.hpp> #include <boost/shared_ptr.hpp> @@ -440,11 +441,7 @@ namespace mongo { TestAssertionFailure( const std::string& file, unsigned line, const std::string& message); TestAssertionFailure(const TestAssertionFailure& other); -#if __cplusplus < 201103 - ~TestAssertionFailure(); -#else - ~TestAssertionFailure() noexcept(false); -#endif + ~TestAssertionFailure() BOOST_NOEXCEPT_IF(false); TestAssertionFailure& operator=(const TestAssertionFailure& other); |