From 701f0ace93b9305560fc3db4c02ba2c21253b4db Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Sat, 21 Oct 2017 21:01:45 +0100 Subject: [PATCH] Clang warnings --- optional.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/optional.hpp b/optional.hpp index f243fba..e8efe9d 100644 --- a/optional.hpp +++ b/optional.hpp @@ -17,7 +17,7 @@ #include #include -#if __cplusplus == 201103L || _MSC_VER == 1900 +#if __cplusplus == 201103L || (defined(_MSC_VER) && _MSC_VER == 1900) /// \exclude #define TL_OPTIONAL_11_CONSTEXPR #else @@ -25,7 +25,7 @@ #define TL_OPTIONAL_11_CONSTEXPR constexpr #endif -#if _MSC_VER == 1900 +#if defined(_MSC_VER) && _MSC_VER == 1900 /// \exclude #define TL_OPTIONAL_MSVC_2015_CONSTEXPR #else @@ -798,7 +798,7 @@ public: constexpr optional() noexcept = default; /// \group ctor_empty - constexpr optional(nullopt_t) noexcept {}; + constexpr optional(nullopt_t) noexcept {} /// Copy constructor ///