From 892cb3e0610cc77a218f77ff2aac1bd38f8bcf43 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sat, 29 Dec 2018 22:38:54 +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 f29bc490..3eb5a612 100644 --- a/src/cpp-utils/either.h +++ b/src/cpp-utils/either.h @@ -122,7 +122,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(std::declval>()._left)))) { if (_side == Side::left) { - return std::move(_left); + return std::move(_left); // NOLINT(cppcoreguidelines-pro-type-union-access) } else { return boost::none; } @@ -146,7 +146,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(std::declval>()._right)))) { if (_side == Side::right) { - return std::move(_right); + return std::move(_right); // NOLINT(cppcoreguidelines-pro-type-union-access) } else { return boost::none; }