From 485a4f3e1538f6ab17569b99619fa31e30373201 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sat, 8 Jan 2022 02:28:36 +0100 Subject: Remove unnecessary check --- include/cxxformat/formatters.hpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include') 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 { static constexpr void format(const format_output auto& out, const S& s, format_specifier spec, optional_int minWidth, optional_int 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) { -- cgit v1.2.3-54-g00ecf