From ccd857ff6d7c15ce336ffb42dd956d8ddc82fd42 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Fri, 16 Jun 2017 13:23:41 -0400 Subject: [PATCH] Add Alloc parameter to basic_string in two places --- date.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/date.h b/date.h index e45753c..073cf0f 100644 --- a/date.h +++ b/date.h @@ -5222,7 +5222,7 @@ format(const std::locale& loc, const std::basic_string& fm -> decltype(to_stream(std::declval&>(), fmt.c_str(), tp), std::basic_string{}) { - std::basic_ostringstream os; + std::basic_ostringstream os; os.imbue(loc); to_stream(os, fmt.c_str(), tp); return os.str(); @@ -5234,7 +5234,7 @@ format(const std::basic_string& fmt, const Streamable& tp) -> decltype(to_stream(std::declval&>(), fmt.c_str(), tp), std::basic_string{}) { - std::basic_ostringstream os; + std::basic_ostringstream os; to_stream(os, fmt.c_str(), tp); return os.str(); }