diff --git a/CMakeLists.txt b/CMakeLists.txt index a165a31..4c812ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 5.4.7) +set(BLT_VERSION 5.4.8) set(BLT_TARGET BLT) diff --git a/include/blt/std/variant.h b/include/blt/std/variant.h index c20eb3e..dc117f1 100644 --- a/include/blt/std/variant.h +++ b/include/blt/std/variant.h @@ -217,12 +217,12 @@ namespace blt constexpr auto call_member(const MemberFunc func, Args&&... args) { using meta = detail::member_call_return_type, Types...>; - return std::visit([&](auto&& value) -> typename meta::return_type { + return visit([&](auto&& value) -> typename meta::return_type { if constexpr (std::is_invocable_v) return ((value).*(func))(std::forward(args)...); else return {}; - }, m_variant); + }); } template