summaryrefslogtreecommitdiff
path: root/src/mongo/util/invariant.h
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2016-06-12 09:33:35 -0400
committerAndrew Morrow <acm@mongodb.com>2016-06-13 15:29:10 -0400
commit642dda763795d7c62753e6e6391b30b1670612b4 (patch)
tree8e40cdd257d56f7495b2d60bc7da91289a7d7834 /src/mongo/util/invariant.h
parent9fd6bc9fb1a9321447efa964b7568da740b23bcf (diff)
downloadmongo-642dda763795d7c62753e6e6391b30b1670612b4.tar.gz
SERVER-24530 Use invariant instead of verify in mutable bson
Also, mark the non-throwing termination points in assert_util noexcept
Diffstat (limited to 'src/mongo/util/invariant.h')
-rw-r--r--src/mongo/util/invariant.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/util/invariant.h b/src/mongo/util/invariant.h
index 68a1bcb70d0..a630bbec7ef 100644
--- a/src/mongo/util/invariant.h
+++ b/src/mongo/util/invariant.h
@@ -42,7 +42,9 @@ namespace mongo {
#error "Include assert_util.h instead of invariant.h."
#endif
-MONGO_COMPILER_NORETURN void invariantFailed(const char* expr, const char* file, unsigned line);
+MONGO_COMPILER_NORETURN void invariantFailed(const char* expr,
+ const char* file,
+ unsigned line) noexcept;
#define MONGO_invariant(_Expression) \
do { \