From 047da3548ef77314f9b4a87169aecf9762b5ae3e Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sun, 18 Jun 2017 12:16:27 -0400 Subject: [PATCH] Change constraint on format functions * For the two format functions dependent upon Alloc, constrain against basic_ostringstream instead of basic_ostream. --- d0355r3.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d0355r3.html b/d0355r3.html index 9f6689a..e4d0b0e 100644 --- a/d0355r3.html +++ b/d0355r3.html @@ -3006,7 +3006,7 @@ format(const basic_string<charT, traits, Alloc>& fmt, const Streamable

Remarks: This function shall not participate in overload resolution unless -to_stream(declval<basic_ostream<charT, traits, Alloc>&>(), fmt.c_str(), s) +to_stream(declval<basic_ostringstream<charT, traits, Alloc>&>(), fmt.c_str(), s) is a valid expression.

@@ -3030,7 +3030,7 @@ format(const locale& loc, const basic_string<charT, traits, Alloc>&

Remarks: This function shall not participate in overload resolution unless -to_stream(declval<basic_ostream<charT, traits, Alloc>&>(), fmt.c_str(), s) +to_stream(declval<basic_ostringstream<charT, traits, Alloc>&>(), fmt.c_str(), s) is a valid expression.