From 1e55bd994d2077a46e0f3d64b4e6d9992f6bbe5e Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Sat, 21 Oct 2017 20:15:59 +0100 Subject: [PATCH] MSVC --- optional.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/optional.hpp b/optional.hpp index 9238f0e..f3c9f8e 100644 --- a/optional.hpp +++ b/optional.hpp @@ -723,7 +723,7 @@ public: /// \returns `rhs` if `*this` is empty, otherwise the current value. /// \group disjunction - constexpr optional disjunction (const optional &rhs) & { + TL_OPTIONAL_11_CONSTEXPR optional disjunction (const optional &rhs) & { return has_value() ? *this : rhs; } @@ -733,7 +733,7 @@ public: } /// \group disjunction - constexpr optional disjunction (const optional &rhs) && { + TL_OPTIONAL_11_CONSTEXPR optional disjunction (const optional &rhs) && { return has_value() ? std::move(*this) : rhs; } @@ -743,7 +743,7 @@ public: } /// \group disjunction - constexpr optional disjunction (optional &&rhs) & { + TL_OPTIONAL_11_CONSTEXPR optional disjunction (optional &&rhs) & { return has_value() ? *this : std::move(rhs); } @@ -753,7 +753,7 @@ public: } /// \group disjunction - constexpr optional disjunction (optional &&rhs) && { + TL_OPTIONAL_11_CONSTEXPR optional disjunction (optional &&rhs) && { return has_value() ? std::move(*this) : std::move(rhs); }