diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-12-22 11:28:01 -0500 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-12-22 11:28:01 -0500 |
commit | 46f05091c9a7d46b3233a12f28d04e29b6f1dfc9 (patch) | |
tree | af7993d71ed99a532782fb8fb888fe8f583778fc /src/mongo/unittest | |
parent | 79631667e6a9371c0a664898256c863afa0f7dd7 (diff) | |
download | mongo-46f05091c9a7d46b3233a12f28d04e29b6f1dfc9.tar.gz |
SERVER-24398 Remove use of boost NOEXCEPT macros in favor of true C++11 noexcept
Diffstat (limited to 'src/mongo/unittest')
-rw-r--r-- | src/mongo/unittest/unittest.cpp | 2 | ||||
-rw-r--r-- | src/mongo/unittest/unittest.h | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/unittest/unittest.cpp b/src/mongo/unittest/unittest.cpp index 94eb315d23a..a39383a79a2 100644 --- a/src/mongo/unittest/unittest.cpp +++ b/src/mongo/unittest/unittest.cpp @@ -453,7 +453,7 @@ TestAssertionFailure& TestAssertionFailure::operator=(const TestAssertionFailure return *this; } -TestAssertionFailure::~TestAssertionFailure() BOOST_NOEXCEPT_IF(false) { +TestAssertionFailure::~TestAssertionFailure() noexcept(false) { if (!_enabled) { invariant(_stream.str().empty()); return; diff --git a/src/mongo/unittest/unittest.h b/src/mongo/unittest/unittest.h index 427b8551fcd..6bb7bffdff8 100644 --- a/src/mongo/unittest/unittest.h +++ b/src/mongo/unittest/unittest.h @@ -40,8 +40,6 @@ #include <utility> #include <vector> -#include <boost/config.hpp> - #include "mongo/base/status_with.h" #include "mongo/logger/logstream_builder.h" #include "mongo/logger/message_log_domain.h" @@ -502,7 +500,7 @@ class TestAssertionFailure { public: TestAssertionFailure(const std::string& file, unsigned line, const std::string& message); TestAssertionFailure(const TestAssertionFailure& other); - ~TestAssertionFailure() BOOST_NOEXCEPT_IF(false); + ~TestAssertionFailure() noexcept(false); TestAssertionFailure& operator=(const TestAssertionFailure& other); |