From 72f2e7535e82093b2eefd199bd1623d165533234 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 15 Sep 2019 15:41:29 +0300 Subject: [PATCH] Fix narrowing conversion in tuple_manipulator ctor This fixes unnecessary, possibly wrapping conversion of the character argument of tuple manipulators on tuple_manipulator construction. This should silence MSVC warning C4244: tuple_io.hpp(142,71): warning C4244: 'argument': conversion from 'const CharType' to 'const char', possible loss of data Related to https://github.com/boostorg/filesystem/issues/118. --- include/boost/tuple/tuple_io.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/tuple/tuple_io.hpp b/include/boost/tuple/tuple_io.hpp index f21c7ed..505bd9d 100644 --- a/include/boost/tuple/tuple_io.hpp +++ b/include/boost/tuple/tuple_io.hpp @@ -102,7 +102,7 @@ class tuple_manipulator { CharType f_c; public: explicit tuple_manipulator(detail::format_info::manipulator_type m, - const char c = 0) + CharType c = CharType()) : mt(m), f_c(c) {} template