From ae88cda44a298d602fe19b4e018159cc0b873e4a Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Tue, 24 Oct 2017 15:55:40 +0100 Subject: [PATCH] More constexpr fixes --- optional.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/optional.hpp b/optional.hpp index 313d5fb..8d158c1 100644 --- a/optional.hpp +++ b/optional.hpp @@ -459,11 +459,11 @@ public: /// `*this` is empty, otherwise an `optional` is constructed from the /// return value of `std::invoke(std::forward(f), value())` and is /// returned. \group map \synopsis template auto map(F &&f) &; - template constexpr auto map(F &&f) & { + template TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) & { return map_impl(*this, std::forward(f)); } - template constexpr auto map(F &&f) && { + template TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) && { return map_impl(std::move(*this), std::forward(f)); }