Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Conversation

@vr-dada
Copy link

@vr-dada vr-dada commented Apr 4, 2022

A reference to a value type of a std::unordered_map has a const key
within the corresponding pair. Using a std::pair<std::string...
therefore causes the creation of such a pair out of the loop variable.
Clang reports this.

This is a

  • Breaking change
  • New feature
  • Bugfix
  • [ x] Minor code improvement

I have

A reference to a value type of a `std::unordered_map` has a const key
within the corresponding pair. Using a `std::pair<std::string...`
therefore causes the creation of such a pair out of the loop variable.
Clang reports this.
@simoc
Copy link

simoc commented Apr 7, 2022

These changes are already included in #771, that is also waiting to be merged to master.

@vr-dada
Copy link
Author

vr-dada commented Apr 8, 2022

Oh my bad, haven't found this. Thanks for the feedback!

@vr-dada vr-dada closed this Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants