From 27c07594a8f53fa2ac4e03c7ebdbfa2ba400b415 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Tue, 22 Apr 2025 23:46:01 -0400 Subject: [PATCH] misses --- CMakeLists.txt | 2 +- include/blt/std/variant.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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