Skip to content

Commit

Permalink
Replace TRemoveConst with std::remove_cv
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytuzi committed Nov 29, 2023
1 parent 7e2bae2 commit 98c751d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugins/UnLua/Source/UnLua/Public/UnLuaEx.inl
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ namespace UnLua
static int32 Invoke(lua_State *L, const TFunction<RetType(ArgType...)> &Func, TTuple<typename TArgTypeTraits<ArgType>::Type...> &Args, TIndices<N...> ParamIndices)
{
int32 Num = 0;
typename TRemoveConst<RetType>::Type *RetValPtr = lua_gettop(L) > sizeof...(ArgType) ? UnLua::Get(L, sizeof...(ArgType) + 1, TType<typename TRemoveConst<RetType>::Type*>()) : nullptr;
typename std::remove_cv<RetType>::type *RetValPtr = lua_gettop(L) > sizeof...(ArgType) ? UnLua::Get(L, sizeof...(ArgType) + 1, TType<typename std::remove_cv<RetType>::type*>()) : nullptr;
if (RetValPtr)
{
*RetValPtr = UnLua::Invoke(Func, Args, typename TZeroBasedIndices<sizeof...(ArgType)>::Type());
Expand Down

0 comments on commit 98c751d

Please sign in to comment.