diff --git a/format.hpp b/format.hpp index 5f7ebb86..31f6ddff 100644 --- a/format.hpp +++ b/format.hpp @@ -23,7 +23,8 @@ namespace util { namespace format { template - std::string render (const std::string &fmt, Args&&...); + std::string + render (const std::string &fmt, Args&&...); class error : public std::runtime_error { using runtime_error::runtime_error; }; diff --git a/format.ipp b/format.ipp index 1b378b13..196dc8e7 100644 --- a/format.ipp +++ b/format.ipp @@ -25,6 +25,7 @@ #include #include #include +#include namespace util { namespace detail { namespace format { @@ -41,6 +42,7 @@ namespace util { is_valid_specifier (const char *s) { return *s == 's'; } + //--------------------------------------------------------------------- template <> inline bool @@ -55,6 +57,13 @@ namespace util { { return *s == 's'; } + //--------------------------------------------------------------------- + template <> + inline bool + is_valid_specifier (const char *s) + { return *s == 's'; } + + //--------------------------------------------------------------------- template <> inline bool