From 7404e33a73aa1d0b07d733bff98f6863d2db46a5 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 10 Apr 2020 16:07:26 +0300 Subject: [PATCH] Fix clang warning about explicit ctor --- src/format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }