-
Notifications
You must be signed in to change notification settings - Fork 247
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
[Core] Fix Clang warning when discard-qualifier
on line 133 of registry.h
#12992
[Core] Fix Clang warning when discard-qualifier
on line 133 of registry.h
#12992
Conversation
i would expect to be the oposite, cend and cbegin should requeire const. If not |
I just do as the compiler says |
I mean yes, the solution you did solves the problem, but we end up having the same function twice. |
No, cend returns a const interator instead of a iterator. The auto hides that. |
omg are we using auto for return types now? God have mercy |
kratos/includes/registry.h:133:17: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
static auto const cend() |
Not my code |
Na its fine, I hadn't seen the auto, sorry for the noise :P |
📝 Description
Fix Clang warning when
discard-qualifier
on line 133 ofregistry.h
.const
is not needed for thecend
iterator.🆕 Changelog
discard-qualifier
on line 133 ofregistry.h