From 4bb5ef3b3854d274fdbe1f811c90f481a31ce4a0 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 23 May 2020 18:36:02 +0300 Subject: [PATCH] Added a workaround for C++20 ostream having deleted operator<< for wchar_t. --- test/numeric_traits_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/numeric_traits_test.cpp b/test/numeric_traits_test.cpp index c22cc6f..197f61f 100644 --- a/test/numeric_traits_test.cpp +++ b/test/numeric_traits_test.cpp @@ -154,6 +154,12 @@ template <> struct stream_as { typedef unsigned char t1; typedef unsigned t2; }; +// C++20 ostream has deleted operator<< for wchar_t +template <> struct stream_as { + typedef unsigned int t1; + typedef unsigned int t2; +}; + #if defined(BOOST_MSVC_STD_ITERATOR) // No intmax streaming built-in // With this library implementation, __int64 and __uint64 get streamed as strings