From 54dcfa677d8883d0bc7179f32cb806d89d4f8e40 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 23 May 2020 20:05:02 +0300 Subject: [PATCH] Added a workaround for C++20 ostream having deleted operator<< for wchar_t. --- test/integer_traits_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integer_traits_test.cpp b/test/integer_traits_test.cpp index b6e0d49..ea1a234 100644 --- a/test/integer_traits_test.cpp +++ b/test/integer_traits_test.cpp @@ -35,6 +35,7 @@ namespace fix{ inline int make_char_numeric_for_streaming(char c) { return c; } inline int make_char_numeric_for_streaming(signed char c) { return c; } inline int make_char_numeric_for_streaming(unsigned char c) { return c; } +inline long long int make_char_numeric_for_streaming(wchar_t c) { return c; } } using namespace fix; #else @@ -42,6 +43,7 @@ template inline T make_char_numeric_for_streaming(T x) { return x; } inline int make_char_numeric_for_streaming(char c) { return c; } inline int make_char_numeric_for_streaming(signed char c) { return c; } inline int make_char_numeric_for_streaming(unsigned char c) { return c; } +inline long long int make_char_numeric_for_streaming(wchar_t c) { return c; } #endif template