diff options
Diffstat (limited to 'src/mongo/stdx')
-rw-r--r-- | src/mongo/stdx/mutex.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/mongo/stdx/mutex.h b/src/mongo/stdx/mutex.h index dee03c3c0fe..91ce36d8a35 100644 --- a/src/mongo/stdx/mutex.h +++ b/src/mongo/stdx/mutex.h @@ -49,17 +49,9 @@ using ::std::try_to_lock_t; // NOLINT using ::std::lock_guard; // NOLINT using ::std::unique_lock; // NOLINT -#if _MSC_VER < 1900 -#define MONGO_STDX_CONSTEXPR const -#else -#define MONGO_STDX_CONSTEXPR constexpr -#endif - -MONGO_STDX_CONSTEXPR adopt_lock_t adopt_lock{}; -MONGO_STDX_CONSTEXPR defer_lock_t defer_lock{}; -MONGO_STDX_CONSTEXPR try_to_lock_t try_to_lock{}; - -#undef MONGO_STDX_CONSTEXPR +constexpr adopt_lock_t adopt_lock{}; +constexpr defer_lock_t defer_lock{}; +constexpr try_to_lock_t try_to_lock{}; } // namespace stdx } // namespace mongo |