|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72650 - trunk/libs/math/doc/sf_and_dist
From: pbristow_at_[hidden]
Date: 2011-06-17 13:00:08
Author: pbristow
Date: 2011-06-17 13:00:07 EDT (Fri, 17 Jun 2011)
New Revision: 72650
URL: http://svn.boost.org/trac/boost/changeset/72650
Log:
Added tip
Text files modified:
trunk/libs/math/doc/sf_and_dist/fp_facets.qbk | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: trunk/libs/math/doc/sf_and_dist/fp_facets.qbk
==============================================================================
--- trunk/libs/math/doc/sf_and_dist/fp_facets.qbk (original)
+++ trunk/libs/math/doc/sf_and_dist/fp_facets.qbk 2011-06-17 13:00:07 EDT (Fri, 17 Jun 2011)
@@ -80,6 +80,12 @@
and, for example, use it to imbue an input and output stringstream.
]
+[tip To just change an input or output stream, you can concisely write
+`cout.imbue (std::locale(std::locale(), new boost::math::nonfinite_num_put<char>));`
+or
+`cin.imbue (std::locale(std::locale(), new boost::math::nonfinite_num_get<char>));`
+]
+
[nonfinite_facets_sstream_2]
[h4 C++0X standard for output of infinity and NaN]
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk