From b90540c1eb7b41b2d9d041a5acdb6e720eac881e Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 12 Jan 2015 22:11:55 +0300 Subject: [PATCH] Compilation fix --- Utilities/StrFmt.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Utilities/StrFmt.h b/Utilities/StrFmt.h index 2cbf2c99e7..4598e5925d 100644 --- a/Utilities/StrFmt.h +++ b/Utilities/StrFmt.h @@ -603,6 +603,14 @@ namespace fmt } }; + static std::string format(const char* fmt, size_t len) + { + const size_t fmt_start = get_fmt_start(fmt, len); + assert(fmt_start == len); + + return std::string(fmt, len); + } + template static std::string format(const char* fmt, size_t len, const T& arg, Args... args) { @@ -612,14 +620,6 @@ namespace fmt return std::string(fmt, fmt_start) + get_fmt::text(fmt + fmt_start, fmt_len, arg) + format(fmt + fmt_end, len - fmt_end, args...); } - - static std::string format(const char* fmt, size_t len) - { - const size_t fmt_start = get_fmt_start(fmt, len); - assert(fmt_start == len); - - return std::string(fmt, len); - } }; // formatting function with very limited functionality (compared to printf-like formatting) and be_t<> support