diff options
| author | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-08 02:28:36 +0100 |
|---|---|---|
| committer | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-08 02:28:36 +0100 |
| commit | 485a4f3e1538f6ab17569b99619fa31e30373201 (patch) | |
| tree | a4a95f6c28e517f0939216ce8583872e51a0f5af | |
| parent | f1b48c9d548743e6b57dda939b58d7d839cf7b5c (diff) | |
| download | cxxformat-485a4f3e1538f6ab17569b99619fa31e30373201.tar.gz cxxformat-485a4f3e1538f6ab17569b99619fa31e30373201.zip | |
Remove unnecessary check
| -rw-r--r-- | include/cxxformat/formatters.hpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/cxxformat/formatters.hpp b/include/cxxformat/formatters.hpp index e27fc6a..b9942d2 100644 --- a/include/cxxformat/formatters.hpp +++ b/include/cxxformat/formatters.hpp @@ -393,10 +393,6 @@ 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) { - if (spec.conversion != 's' && spec.conversion != 'v') - { - throw invalid_argument{"The given stringy type only supports the āsā and āvā conversions"}; - } std::string_view val(s); if (precision) { |
