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 operator<< compiler error when c++20 enabled #53

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

kcsaul
Copy link
Contributor

@kcsaul kcsaul commented Dec 30, 2021

Identified compilation error while attempting to use latest version of library within project that uses C++20

Recreated error while compiling tests with UUID_USING_CXX20_SPAN switched on.

Problem appears to be due to prior change to operator<< to use to_string, which is currently defined after operator<< and it would seem C++20 is stricter in this regard (or at least MSVC is). Fixed by moving operator<< below to_string implementation.

@mariusbancila mariusbancila merged commit 9357e52 into mariusbancila:master Dec 30, 2021
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.

None yet

2 participants