From d8973a65246c82c1a6c3d69d2355ca61b494e9d3 Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Wed, 11 Apr 2018 15:53:01 +0100 Subject: [PATCH] Fix #8 --- tl/optional.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tl/optional.hpp b/tl/optional.hpp index 64c1cdc..566028f 100644 --- a/tl/optional.hpp +++ b/tl/optional.hpp @@ -1357,7 +1357,7 @@ public: #ifndef TL_OPTIONAL_NO_CONSTRR /// \exclude - constexpr const T &&value() const && { + TL_OPTIONAL_11_CONSTEXPR const T &&value() const && { if (has_value()) return std::move(this->m_value); throw bad_optional_access(); @@ -1374,7 +1374,7 @@ public: } /// \group value_or - template constexpr T value_or(U &&u) && { + template TL_OPTIONAL_11_CONSTEXPR T value_or(U &&u) && { static_assert(std::is_move_constructible::value && std::is_convertible::value, "T must be move constructible and convertible from U"); @@ -2255,7 +2255,7 @@ public: } /// \group value_or - template constexpr T value_or(U &&u) && { + template TL_OPTIONAL_11_CONSTEXPR T value_or(U &&u) && { static_assert(std::is_move_constructible::value && std::is_convertible::value, "T must be move constructible and convertible from U");