fix lambda_helper
parent
f9938691ec
commit
3e8b616bf9
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required(VERSION 3.20)
|
||||
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_TARGET BLT)
|
||||
|
|
|
@ -47,12 +47,18 @@ namespace blt::meta
|
|||
};
|
||||
|
||||
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 Return = IReturn;
|
||||
using Class = IClass;
|
||||
using Args = arg_helper<LArgs...>;
|
||||
|
||||
template<typename T>
|
||||
explicit lambda_helper(T)
|
||||
{}
|
||||
|
||||
lambda_helper() = default;
|
||||
};
|
||||
|
||||
template<typename Lambda>
|
||||
|
|
Loading…
Reference in New Issue