<html>
<head>
<title>defaultfloat proposed text</title>
<style>
p {text-align:justify}
li {text-align:justify}
blockquote.note
{
    background-color:#E0E0E0;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 1px;
    padding-bottom: 1px;
}
ins {background-color:#FFFFA0}
del {background-color:#FFFFA0}
</style>
</head>

<body>
<address align=right>
Document number: N1991=06-0061<br>
<br>
<a href="mailto:hinnant@twcny.rr.com">Howard E. Hinnant</a><br>
2006-04-06
</address>
<hr>

<h1 align="center">Proposed Text for defaultfloat (N1842)</h1>

<h2>Explanation</h2>

<p>
The LWG would like to accept N1842 into the C++0X working draft with two chanages:
</p>

<ul>
<li>Rename <tt>automatic</tt> to <tt>defaultfloat</tt>.</li>
<li>Drop <tt>noadjust</tt> as it has the same semantics as the existing manipulator
<tt>right</tt>.</li>
</ul>

<h2>Proposed Wording</h2>

<p>
Append to 27.4 <b>Header &lt;ios&gt; synopsis</b>:
</p>

<blockquote><pre>
ios_base&amp; defaultfloat  (ios_base&amp; <i>str</i>);
</pre></blockquote>

<p>
Append to <b>27.4.5.4</b> <tt>floatfield</tt> <b>manipulators</b>.
</p>

<pre>
iosbase&amp; defaultfloat(iosbase&amp; <i>str</i>);
</pre>

<p>
-5- <b>Effects:</b> Calls <tt><i>str</i>.unsetf(ios_base::floatfield)</tt>.
</p>

<p>
-6- <b>Returns:</b> <tt><i>str</i></tt>.
</p>

</body>
</html>
