Brett 2023-12-11 17:52:24 -05:00
parent c1c989d416
commit 90f271961f
2 changed files with 13 additions and 9 deletions

View File

@ -209,6 +209,10 @@ namespace blt
} }
}; };
//#define BLT_LAMBDA(type, var, code) [](const type& var) -> auto { return code; }
//#define BLT_LAMBDA(var, code) [](var) -> auto { return code; }
// TODO: WTF
template<class... TLambdas> template<class... TLambdas>
struct lambda_visitor : TLambdas... { struct lambda_visitor : TLambdas... {
using TLambdas::operator()...; using TLambdas::operator()...;