mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-07 08:31:16 +00:00
Fix clang warning about explicit ctor
This commit is contained in:
parent
3aab2171ed
commit
7404e33a73
@ -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; }
|
||||||
|
Loading…
Reference in New Issue
Block a user