mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +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;
|
||||
|
||||
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) {}
|
||||
|
||||
constexpr bool has_precision() const { return precision >= 0; }
|
||||
|
Loading…
Reference in New Issue
Block a user