diff options
Diffstat (limited to 'cxxformat.hpp')
| -rw-r--r-- | cxxformat.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cxxformat.hpp b/cxxformat.hpp index a5ff4ca..3a45e9f 100644 --- a/cxxformat.hpp +++ b/cxxformat.hpp @@ -561,7 +561,7 @@ namespace detail template<auto fmt, size_t i, size_t argumentIndex> std::string format_s() { - if constexpr (i == fmt.size) return ""; + if constexpr (i == fmt.size) return fmt.s; else if constexpr (get<i>(fmt) == '%') { if constexpr (get<i + 1>(fmt) == '%') return substr<0, i, true>(fmt).s + format_s<substr<i + 2>(fmt), 0, argumentIndex>(); @@ -655,4 +655,4 @@ std::string format(Args &&...args) { return detail::format_s<fmt, 0, 1>(std::forward<Args>(args)...); } -}
\ No newline at end of file +} |
