diff --git a/src/format.cc b/src/format.cc index 9a9abf8d..f540d7c7 100644 --- a/src/format.cc +++ b/src/format.cc @@ -29,7 +29,7 @@ struct sprintf_specs { bool alt : 1; template - constexpr sprintf_specs(basic_format_specs specs) + constexpr explicit sprintf_specs(basic_format_specs specs) : precision(specs.precision), type(specs.type), alt(specs.alt) {} constexpr bool has_precision() const { return precision >= 0; }