Fix clang warning about explicit ctor

This commit is contained in:
gabime 2020-04-10 16:07:26 +03:00 committed by Victor Zverovich
parent 3aab2171ed
commit 7404e33a73

View File

@ -29,7 +29,7 @@ struct sprintf_specs {
bool alt : 1; bool alt : 1;
template <typename Char> template <typename Char>
constexpr sprintf_specs(basic_format_specs<Char> specs) constexpr explicit sprintf_specs(basic_format_specs<Char> specs)
: precision(specs.precision), type(specs.type), alt(specs.alt) {} : precision(specs.precision), type(specs.type), alt(specs.alt) {}
constexpr bool has_precision() const { return precision >= 0; } constexpr bool has_precision() const { return precision >= 0; }