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

Convert 'char8_t' character sequences to 'char' sequences #1505

Merged
merged 1 commit into from
Jan 4, 2020

Conversation

DanielaE
Copy link
Contributor

@DanielaE DanielaE commented Jan 4, 2020

Otherwise, Google Test will insist on inserting 'char8_t' NTBS into 'char' streams, but basic_ostream::operator<< overloads taking 'char8_t' arguments are defined as deleted by P1423.
Handling individual 'char8_t's is done inline.

This fixes the compilation errors seen in C++20 mode beginning with VS2019 Update 2.

Otherwise, Google Test will insist on inserting 'char8_t' NTBS into 'char' streams, but basic_ostream<char>::operator<< overloads taking 'char8_t' arguments are defined as deleted by P1423.
Handling individual 'char8_t's is done inline.

This fixes the compilation errors seen in C++20 mode beginning with VS2019 Update 2.

Signed-off-by: Daniela Engert <dani@ngrt.de>
@vitaut vitaut merged commit cb8e7ca into fmtlib:master Jan 4, 2020
@vitaut
Copy link
Contributor

vitaut commented Jan 4, 2020

Thanks!

@DanielaE DanielaE deleted the fix/char8_t-tests-in-C++20 branch January 4, 2020 17:08
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