diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compileTimeFormatter.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/compileTimeFormatter.h b/lib/compileTimeFormatter.h index 09aae53..3779454 100644 --- a/lib/compileTimeFormatter.h +++ b/lib/compileTimeFormatter.h @@ -251,7 +251,12 @@ namespace MyGrate { return FormatterDetail<Str, Str.size()>::get(pn...); } - template<const Support::basic_fixed_string Str, typename stream, typename... Pn> + template<typename T> + concept Writable = requires(T s) + { + {s << 0}; + }; + template<const Support::basic_fixed_string Str, Writable stream, typename... Pn> inline auto & scprintf(stream & strm, const Pn &... pn) { |