From a1ed40fe56306ac9e4972a54d3132b138d6aec40 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sat, 29 Dec 2018 11:58:38 +0100 Subject: [PATCH] fix --- src/cpp-utils/either.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp-utils/either.h b/src/cpp-utils/either.h index 1fdcb3a2..f29bc490 100644 --- a/src/cpp-utils/either.h +++ b/src/cpp-utils/either.h @@ -120,7 +120,7 @@ namespace cpputils { } } // warning: opposed to the other left_opt variants, this one already moves the content and returns by value. - boost::optional left_opt() && noexcept(noexcept(boost::optional(std::move(_left)))) { + boost::optional left_opt() && noexcept(noexcept(boost::optional(std::move(std::declval>()._left)))) { if (_side == Side::left) { return std::move(_left); } else { @@ -144,7 +144,7 @@ namespace cpputils { } } // warning: opposed to the other left_opt variants, this one already moves the content and returns by value. - boost::optional right_opt() && noexcept(noexcept(boost::optional(std::move(_right)))) { + boost::optional right_opt() && noexcept(noexcept(boost::optional(std::move(std::declval>()._right)))) { if (_side == Side::right) { return std::move(_right); } else {