diff options
| author | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-11 03:24:51 +0100 |
|---|---|---|
| committer | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-11 03:24:51 +0100 |
| commit | 9dbf01f081437e150b21e38c0003539266d60605 (patch) | |
| tree | 434c72041b7392e4e4e19acffc334af0a465e6b1 | |
| parent | efc7278fb065d873eca54563c5b89f2768237564 (diff) | |
| download | cxxformat-9dbf01f081437e150b21e38c0003539266d60605.tar.gz cxxformat-9dbf01f081437e150b21e38c0003539266d60605.zip | |
Use brace initialization instead of parentheses
| -rw-r--r-- | include/cxxformat/formatters.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cxxformat/formatters.hpp b/include/cxxformat/formatters.hpp index 31f0fef..99f9f62 100644 --- a/include/cxxformat/formatters.hpp +++ b/include/cxxformat/formatters.hpp @@ -584,7 +584,7 @@ namespace format { struct formatter<S> { static constexpr void format(const format_output auto& out, const S& s, format_specifier spec, optional_int<std::size_t> minWidth, optional_int<std::size_t> precision) { - std::string_view val(s); + std::string_view val{s}; if (precision) { val = val.substr(0, *precision); |
