提交 e053e745 编写于 作者: M minqiyang

Fix bug

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