diff options
author | gabime <gmelman1@gmail.com> | 2020-04-10 16:07:26 +0300 |
---|---|---|
committer | Victor Zverovich <viz@fb.com> | 2020-04-12 06:19:16 -0700 |
commit | 7404e33a73aa1d0b07d733bff98f6863d2db46a5 (patch) | |
tree | 75ca4bd48989f27ac42e6a9bc8f2266c002901e3 /src | |
parent | 3aab2171edd265ca12c2248507ecd1d9832eb465 (diff) | |
download | fmtlib-7404e33a73aa1d0b07d733bff98f6863d2db46a5.tar.gz |
Fix clang warning about explicit ctor
Diffstat (limited to 'src')
-rw-r--r-- | src/format.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 <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; } |