forked from boostorg/tuple
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:
@ -102,7 +102,7 @@ class tuple_manipulator {
|
|||||||
CharType f_c;
|
CharType f_c;
|
||||||
public:
|
public:
|
||||||
explicit tuple_manipulator(detail::format_info::manipulator_type m,
|
explicit tuple_manipulator(detail::format_info::manipulator_type m,
|
||||||
const char c = 0)
|
CharType c = CharType())
|
||||||
: mt(m), f_c(c) {}
|
: mt(m), f_c(c) {}
|
||||||
|
|
||||||
template<class CharTrait>
|
template<class CharTrait>
|
||||||
|
Reference in New Issue
Block a user