From 3b0a4b448c8b992005b63e447cbcce8688fa5c4e Mon Sep 17 00:00:00 2001 From: GhostDragonWasTook Date: Wed, 27 May 2026 21:37:51 +0200 Subject: [PATCH] fix: use remove_cvref_t in void or_else construct_empty Void or_else failed to compile when the nullable was passed as an lvalue, because construct_empty was instantiated with a reference type. --- include/gimo/algorithm/OrElse.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gimo/algorithm/OrElse.hpp b/include/gimo/algorithm/OrElse.hpp index fd239a0..27b3042 100644 --- a/include/gimo/algorithm/OrElse.hpp +++ b/include/gimo/algorithm/OrElse.hpp @@ -62,7 +62,7 @@ namespace gimo::detail::or_else if constexpr (std::is_void_v>) { std::invoke(std::forward(action)); - return detail::construct_empty(); + return detail::construct_empty>(); } else {