From 942bf06565378484da61a8afc92ea9a5368c7200 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Mon, 2 Jul 2018 22:10:48 +0800 Subject: [PATCH] Add specialization arguments --- paddle/fluid/string/printf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/string/printf.h b/paddle/fluid/string/printf.h index 94e319b330d..3b40c6029d5 100644 --- a/paddle/fluid/string/printf.h +++ b/paddle/fluid/string/printf.h @@ -90,8 +90,8 @@ std::string Sprintf(const Args&... args) { return oss.str(); } -template -std::string Sprintf(const Args&... args) { +template +std::string Sprintf(const char* fmt, const Args&... args) { std::ostringstream oss; Fprintf(oss, fmt, args...); return oss.str(); -- GitLab