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

join does not use ADL on begin/end of its ranges #3813

Closed
rhalbersma opened this issue Jan 16, 2024 · 1 comment · Fixed by #3824
Closed

join does not use ADL on begin/end of its ranges #3813

rhalbersma opened this issue Jan 16, 2024 · 1 comment · Fixed by #3824

Comments

@rhalbersma
Copy link

rhalbersma commented Jan 16, 2024

fmt::join is using std::begin and std::end on the range it is being passed. This makes it harder for user-defined types that have their own begin and end living in their own namespace. E.g., range-for does ADL on begin/end on a range's associated namespaces. It it by design that {fmt} does not do the same?

@vitaut
Copy link
Contributor

vitaut commented Jan 16, 2024

It it by design that {fmt} does not do the same?

Not really, just an implementation artefact. A PR to add ADL support is welcome.

bbolli added a commit to bbolli/fmt that referenced this issue Jan 21, 2024
bbolli added a commit to bbolli/fmt that referenced this issue Jan 21, 2024
vitaut pushed a commit that referenced this issue Jan 22, 2024
happymonkey1 pushed a commit to happymonkey1/fmt that referenced this issue Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants