mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
Simplify.
This commit is contained in:
parent
9bde82689f
commit
f2e0391800
4
format.h
4
format.h
@ -1558,14 +1558,14 @@ template<typename... Args>
|
|||||||
inline std::string Format(const StringRef &format, const Args & ... args) {
|
inline std::string Format(const StringRef &format, const Args & ... args) {
|
||||||
Writer w;
|
Writer w;
|
||||||
w.Format(format, args...);
|
w.Format(format, args...);
|
||||||
return fmt::str(w);
|
return str(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
inline std::wstring Format(const WStringRef &format, const Args & ... args) {
|
inline std::wstring Format(const WStringRef &format, const Args & ... args) {
|
||||||
WWriter w;
|
WWriter w;
|
||||||
w.Format(format, args...);
|
w.Format(format, args...);
|
||||||
return fmt::str(w);
|
return str(w);
|
||||||
}
|
}
|
||||||
#endif // FMT_USE_VARIADIC_TEMPLATES
|
#endif // FMT_USE_VARIADIC_TEMPLATES
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user