提交 e053e745 编写于 作者: M minqiyang

Fix bug

上级 6739797d
......@@ -85,11 +85,9 @@ void Fprintf(std::ostream& out, const char* fmt, const Args&... args) {
template <typename... Args>
std::string Sprintf(const Args&... args) {
if (0u == sizeof...(args)) {
Sprintf("", args);
}
return Sprintf(args, args);
std::ostringstream oss;
Fprintf(oss, "", args...);
return oss.str();
}
template <typename... Args>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册