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

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

Open
avidele opened this issue Apr 21, 2024 · 2 comments
Open

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

avidele opened this issue Apr 21, 2024 · 2 comments

Comments

@avidele
Copy link

avidele commented Apr 21, 2024

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
Copy link

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

@jk15162428
Copy link

jk15162428 commented Jul 15, 2024

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.

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

3 participants