fix lambda_helper

v1
Brett 2024-08-06 03:44:20 -04:00
parent f9938691ec
commit 3e8b616bf9
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20) cmake_minimum_required(VERSION 3.20)
include(cmake/color.cmake) include(cmake/color.cmake)
set(BLT_VERSION 0.18.22) set(BLT_VERSION 0.18.23)
set(BLT_TEST_VERSION 0.0.1) set(BLT_TEST_VERSION 0.0.1)
set(BLT_TARGET BLT) set(BLT_TARGET BLT)

View File

@ -47,12 +47,18 @@ namespace blt::meta
}; };
template<typename TheLambda, typename IReturn, typename IClass, typename... LArgs> template<typename TheLambda, typename IReturn, typename IClass, typename... LArgs>
struct lambda_helper<TheLambda, IReturn(IClass::*)(LArgs...)> struct lambda_helper<TheLambda, IReturn (IClass::*)(LArgs...) const>
{ {
using Lambda = TheLambda; using Lambda = TheLambda;
using Return = IReturn; using Return = IReturn;
using Class = IClass; using Class = IClass;
using Args = arg_helper<LArgs...>; using Args = arg_helper<LArgs...>;
template<typename T>
explicit lambda_helper(T)
{}
lambda_helper() = default;
}; };
template<typename Lambda> template<typename Lambda>