Tencent / UnLua

A feature-rich, easy-learning and highly optimized Lua scripting plugin for UE.
Other
2.18k stars 595 forks source link

Arch Linux下编译报错(UE5.3.2) #698

Open avidele opened 4 months ago

avidele commented 4 months ago

0>EnumRegistry.cpp(31,25): Error : loop variable 'Pair' creates a copy from type 'const PairType' (aka 'const TTuple<FString, FEnumDesc >') [-Werror,-Wrange-loop-construct] 0> for (const auto Pair : Name2Enums) 0> ^ 0>EnumRegistry.cpp(31,14): Reference : use reference type 'const PairType &' (aka 'const TTuple<FString, FEnumDesc > &') to prevent copying 0> for (const auto Pair : Name2Enums) 0> ^~~~~ 0> & 0>1 error generated. 图片

buihuuloc commented 2 months ago

Hi @avidele Have you managed to fix this issue? I encounter the same issue

jk15162428 commented 1 month ago

Hi all, One solution is presented here: issue #693 For this error, simplest solution is just add a &, like const auto& Pair... in line 31.