From ee3326fac7df496cbae5b96cc585131231a70bc8 Mon Sep 17 00:00:00 2001 From: Sy Brand Date: Fri, 24 Feb 2023 09:18:20 +0000 Subject: [PATCH] Fix #55 --- include/tl/optional.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tl/optional.hpp b/include/tl/optional.hpp index 5308231..b7b3d61 100644 --- a/include/tl/optional.hpp +++ b/include/tl/optional.hpp @@ -1182,7 +1182,7 @@ public: } } - if (rhs.has_value()) { + else if (rhs.has_value()) { this->construct(*rhs); } @@ -1204,7 +1204,7 @@ public: } } - if (rhs.has_value()) { + else if (rhs.has_value()) { this->construct(std::move(*rhs)); }