From 358bd026e30479904c4721d0c84bde19ea31a013 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 29 Jan 2021 21:34:44 +0100 Subject: Support C++17 --- src/test-unicode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/test-unicode.cpp b/src/test-unicode.cpp index 2dfabef..05370c7 100644 --- a/src/test-unicode.cpp +++ b/src/test-unicode.cpp @@ -18,7 +18,7 @@ using namespace std::chrono_literals; -typedef std::tuple, std::basic_string, std::basic_string> types_collection_type; +typedef std::tuple, std::basic_string, std::basic_string> types_collection_type; // create tuple of the same string, in UTF-8, UTF-16 and UTF-32 #define SUCCESS_TUPLE(x) {u8 ## x, u ## x, U ## x} @@ -34,7 +34,7 @@ std::vector success_sets { }; // Error cases: throwing upon convert to all other types -std::vector> failure_strings_char8_t { +std::vector> failure_strings_char8_t { u8"\x80", // utf-8 continuation byte u8"\x81", // utf-8 continuation byte u8"\xc3ä", // initial byte of utf-8 "ä", followed by valid utf-8 "ä" @@ -56,7 +56,7 @@ std::vector> failure_strings_char32_t { // output operators must be in same namespace as the type itself namespace std { -std::ostream& operator<<(std::ostream& os, std::basic_string const& s) +std::ostream& operator<<(std::ostream& os, std::basic_string const& s) { os << "["; for (auto& c: s) -- cgit v1.2.3