summaryrefslogtreecommitdiff
path: root/src/mongo/unittest
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-12-22 11:28:01 -0500
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-12-22 11:28:01 -0500
commit46f05091c9a7d46b3233a12f28d04e29b6f1dfc9 (patch)
treeaf7993d71ed99a532782fb8fb888fe8f583778fc /src/mongo/unittest
parent79631667e6a9371c0a664898256c863afa0f7dd7 (diff)
downloadmongo-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.cpp2
-rw-r--r--src/mongo/unittest/unittest.h4
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);