From 7cd20bb64df057b0fc69d56b46ce7a71ea839e46 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 20 Jan 2016 16:36:32 +1100 Subject: [PATCH] format: add specifier detection for fs::path --- format.hpp | 3 ++- format.ipp | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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