diff options
Diffstat (limited to 'src/mongo/base/status_with.h')
-rw-r--r-- | src/mongo/base/status_with.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/base/status_with.h b/src/mongo/base/status_with.h index 66880385ab4..29323861199 100644 --- a/src/mongo/base/status_with.h +++ b/src/mongo/base/status_with.h @@ -34,6 +34,7 @@ #include <type_traits> #include <utility> +#include "mongo/base/static_assert.h" #include "mongo/base/status.h" #define MONGO_INCLUDE_INVARIANT_H_WHITELISTED @@ -61,7 +62,8 @@ namespace mongo { */ template <typename T> class StatusWith { - static_assert(!(std::is_same<T, mongo::Status>::value), "StatusWith<Status> is banned."); + MONGO_STATIC_ASSERT_MSG(!(std::is_same<T, mongo::Status>::value), + "StatusWith<Status> is banned."); public: /** |