|
Boost-Commit : |
From: jefffaust_at_[hidden]
Date: 2007-05-27 22:33:36
Author: jefffaust
Date: 2007-05-27 22:33:36 EDT (Sun, 27 May 2007)
New Revision: 4328
URL: http://svn.boost.org/trac/boost/changeset/4328
Log:
Implement format_normal in a safer way.
Text files modified:
sandbox/explore/boost/explore/stream_container.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: sandbox/explore/boost/explore/stream_container.hpp
==============================================================================
--- sandbox/explore/boost/explore/stream_container.hpp (original)
+++ sandbox/explore/boost/explore/stream_container.hpp 2007-05-27 22:33:36 EDT (Sun, 27 May 2007)
@@ -343,8 +343,8 @@
template<typename Elem, typename Tr>
std::basic_ostream<Elem, Tr>& format_normal(std::basic_ostream<Elem, Tr>& ostr)
{
- return ostr << start("[") << separator(", ") << end("]")
- << assoc_start("") << assoc_separator(":") << assoc_end("");;
+ get_stream_state<container_stream_state<Elem, Tr> >(ostr)->init<Elem>();
+ return ostr;
}
// manipulator
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