@@ -28,7 +28,7 @@ namespace rtl
2828 {
2929 /* a variable arguments lambda, which finally calls the 'pFunctor' with 'params...'.
3030 this is stored in _derivedType's (MethodContainer<detail::methodQ::NonConst, _signature...>) vector holding lambda's.
31- */ return [= ](const RObject& pTargetObj, _signature&&...params )-> Return
31+ */ return [pFunctor ](const RObject& pTargetObj, _signature&&...params )-> Return
3232 {
3333 if (!pTargetObj.isConstCastSafe ()) [[unlikely]] {
3434 return { error::IllegalConstCast, RObject{} };
@@ -48,7 +48,7 @@ namespace rtl
4848 {
4949 /* a variable arguments lambda, which finally calls the 'pFunctor' with 'params...'.
5050 this is stored in _derivedType's (MethodContainer<detail::methodQ::NonConst, _signature...>) vector holding lambda's.
51- */ return [= ](const RObject& pTargetObj, _signature&&...params )-> Return
51+ */ return [pFunctor ](const RObject& pTargetObj, _signature&&...params )-> Return
5252 {
5353 if (!pTargetObj.isConstCastSafe ()) [[unlikely]] {
5454 return { error::IllegalConstCast, RObject{} };
@@ -90,7 +90,7 @@ namespace rtl
9090 {
9191 /* a variable arguments lambda, which finally calls the 'pFunctor' with 'params...'.
9292 this is stored in _derivedType's (MethodContainer<detail::methodQ::Const, _signature...>) vector holding lambda's.
93- */ return [= ](const RObject& pTargetObj, _signature&&...params )-> Return
93+ */ return [pFunctor ](const RObject& pTargetObj, _signature&&...params )-> Return
9494 {
9595 const _recordType& target = pTargetObj.view <_recordType>()->get ();
9696 (target.*pFunctor)(std::forward<_signature>(params)...);
@@ -106,7 +106,7 @@ namespace rtl
106106 {
107107 /* a variable arguments lambda, which finally calls the 'pFunctor' with 'params...'.
108108 this is stored in _derivedType's (MethodContainer<detail::methodQ::Const, _signature...>) vector holding lambda's.
109- */ return [= ](const RObject& pTargetObj, _signature&&...params )-> Return
109+ */ return [pFunctor ](const RObject& pTargetObj, _signature&&...params )-> Return
110110 {
111111 constexpr bool isConstCastSafe = (!traits::is_const_v<_returnType>);
112112 // 'target' is const and 'pFunctor' is const-member-function.
0 commit comments