Compilation fix
This commit is contained in:
+8
-8
@@ -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<typename T, typename... Args>
|
template<typename T, typename... Args>
|
||||||
static std::string format(const char* fmt, size_t len, const T& arg, Args... args)
|
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<T>::text(fmt + fmt_start, fmt_len, arg) + format(fmt + fmt_end, len - fmt_end, args...);
|
return std::string(fmt, fmt_start) + get_fmt<T>::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
|
// formatting function with very limited functionality (compared to printf-like formatting) and be_t<> support
|
||||||
|
|||||||
Reference in New Issue
Block a user