Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c2440 ue5.32 这个怎么修复 #108

Open
GGGHoliday opened this issue Aug 14, 2024 · 1 comment
Open

c2440 ue5.32 这个怎么修复 #108

GGGHoliday opened this issue Aug 14, 2024 · 1 comment

Comments

@GGGHoliday
Copy link

严重性 代码 说明 项目 文件 行 禁止显示状态 详细信息
错误 C2440 “默认参数”: 无法从“<lambda_22_>”转换为“TFunction<void (const TArray<FString,FDefaultAllocator> &,const TArray<FString,FDefaultAllocator> &,const FString &,const FString &,FCriticalSection &)>” Hot53 D:\UE_Project\Hot53\Plugins\HotPatcher\Source\HotPatcherRuntime\Public\FlibAssetManageHelper.h 172

@sixtolink
Copy link

在外部声明一个inline TFunction<void(const TArray&,const TArray&,const FString&,const FString&,FCriticalSection&)> InReceivePakCommandLambda = [](const TArray&,const TArray&, const FString&, const FString&,FCriticalSection&)->void {};然后把InReceivePakCommandLambda作为默认参数传递就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants