Skip to content

Commit 7b96bbf

Browse files
committed
Add template specialization
1 parent e053e74 commit 7b96bbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/fluid/string/printf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ std::string Sprintf(const Args&... args) {
9090
return oss.str();
9191
}
9292

93-
template <typename... Args>
94-
std::string Sprintf(const char* fmt, const Args&... args) {
93+
template <const char* fmt, typename... Args>
94+
std::string Sprintf(const Args&... args) {
9595
std::ostringstream oss;
9696
Fprintf(oss, fmt, args...);
9797
return oss.str();

0 commit comments

Comments
 (0)