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.
This commit is contained in:
Andrey Semashev
2019-09-15 15:41:29 +03:00
committed by GitHub
parent 0b724234ce
commit 72f2e7535e

View File

@ -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<class CharTrait>