mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Fix clang warning about explicit ctor
This commit is contained in:
@ -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; }
|
||||||
|
Reference in New Issue
Block a user