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 build when iterators are raw pointers #11880

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

georgthegreat
Copy link
Contributor

Similar to #11879, typename Iterator might be just a raw pointer. The most corrent way would be using std::iterator_traits to get the type properly, but it seems that current static_cast can be simply removed.

Similar to OSGeo#11879, `typename Iterator` might be just a raw pointer.
The most corrent way would be using `std::iterator_traits` to get the type properly, but it seems that current static_cast can be simply removed.
@rouault
Copy link
Member

rouault commented Mar 2, 2025

There's a typo in this commit (extra parenthesis), but I would be more confortable if this change was submitted upstream to https://github.com/p-ranav/argparse and accepted there prior to here

@georgthegreat
Copy link
Contributor Author

Thanks!
I have noticed the typo too, but was waiting for two other PRs to be merged.
I will create the PR to upstream, let's keep this one open for now.

@georgthegreat
Copy link
Contributor Author

I filed an upstream PR here:
p-ranav/argparse#399

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