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

[new-core-alignment] ecal_expmap not using std::iterator anymore #1357

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

rex-schilasky
Copy link
Contributor

@rex-schilasky rex-schilasky commented Feb 9, 2024

Description

Improved compatibility of ecal_expmap with C++17.

Cherry-pick to

none

using pointer = std::pair<Key, T>*;
using reference = std::pair<Key, T>&;

explicit iterator(const typename key_to_value_type::iterator _it)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rex-schilasky how come you made the constructor explicit?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And what about the iterator tag, is it not necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And what about the iterator tag, is it not necessary?

It's not 100 percent clear to me why you need all 5, it also seems to work with 3 and clang reports 2 of 5 as "unused". But I will complete it again.

Copy link
Contributor

@KerstinKeller KerstinKeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rex-schilasky rex-schilasky merged commit 5c039cc into master Feb 13, 2024
15 checks passed
@rex-schilasky rex-schilasky deleted the new-core/expmap branch February 13, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants