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

Fix compilation error about range based for loops #1597

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

scarf005
Copy link
Member

@scarf005 scarf005 commented Jun 5, 2022

Summary

SUMMARY: Build "Fix Compilation error about range based for loops"

Purpose of change

compilation was failing because say,

for( const std::pair<tripoint, double> &pv : to_bucket )

wasn't const enough to be referenced.

Describe the solution

for( const std::pair<const tripoint, double> &pv : to_bucket )

added some of added missing const qualifier, or changed to auto if it wasn't able to.

Describe alternatives you've considered

Testing

Additional context

added missing const qualifier, or changed to auto
@Coolthulhu Coolthulhu self-assigned this Jun 5, 2022
@Coolthulhu Coolthulhu merged commit 4517ead into cataclysmbnteam:upload Jun 7, 2022
@scarf005 scarf005 deleted the fix-range-for-loop branch June 7, 2022 22:01
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

Successfully merging this pull request may close these issues.

2 participants