forked from HowardHinnant/date
Change constraint on format functions
* For the two format functions dependent upon Alloc, constrain against basic_ostringstream<charT, traits, Alloc> instead of basic_ostream<charT, traits>.
This commit is contained in:
@@ -3006,7 +3006,7 @@ format(const basic_string<charT, traits, Alloc>& fmt, const Streamable
|
|||||||
<blockquote>
|
<blockquote>
|
||||||
<p>
|
<p>
|
||||||
<i>Remarks:</i> This function shall not participate in overload resolution unless
|
<i>Remarks:</i> This function shall not participate in overload resolution unless
|
||||||
<code>to_stream(declval<basic_ostream<charT, traits, Alloc>&>(), fmt.c_str(), s)</code>
|
<code>to_stream(declval<basic_ostringstream<charT, traits, Alloc>&>(), fmt.c_str(), s)</code>
|
||||||
is a valid expression.
|
is a valid expression.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -3030,7 +3030,7 @@ format(const locale& loc, const basic_string<charT, traits, Alloc>&
|
|||||||
<blockquote>
|
<blockquote>
|
||||||
<p>
|
<p>
|
||||||
<i>Remarks:</i> This function shall not participate in overload resolution unless
|
<i>Remarks:</i> This function shall not participate in overload resolution unless
|
||||||
<code>to_stream(declval<basic_ostream<charT, traits, Alloc>&>(), fmt.c_str(), s)</code>
|
<code>to_stream(declval<basic_ostringstream<charT, traits, Alloc>&>(), fmt.c_str(), s)</code>
|
||||||
is a valid expression.
|
is a valid expression.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user