Boost logo

Boost-Commit :

From: lists.drrngrvy_at_[hidden]
Date: 2008-05-20 12:23:37


Author: drrngrvy
Date: 2008-05-20 12:23:37 EDT (Tue, 20 May 2008)
New Revision: 45583
URL: http://svn.boost.org/trac/boost/changeset/45583

Log:
Fixing operator<< overload for name.hpp
Text files modified:
   sandbox/SOC/2007/cgi/trunk/boost/cgi/common/name.hpp | 22 +++++++++++-----------
   1 files changed, 11 insertions(+), 11 deletions(-)

Modified: sandbox/SOC/2007/cgi/trunk/boost/cgi/common/name.hpp
==============================================================================
--- sandbox/SOC/2007/cgi/trunk/boost/cgi/common/name.hpp (original)
+++ sandbox/SOC/2007/cgi/trunk/boost/cgi/common/name.hpp 2008-05-20 12:23:37 EDT (Tue, 20 May 2008)
@@ -62,20 +62,20 @@
    };
 
    // typedef for typical usage.
- typedef std::basic_string<char, ichar_traits<char> > name;
+ typedef std::basic_string<char, ichar_traits<char> > name;
+ typedef std::basic_string<wchar_t, ichar_traits<wchar_t> > wname;
+
+ // Allow output using standard streams (conserves original case).
+ template <typename CharT, typename Traits>
+ std::basic_ostream<CharT, Traits>&
+ operator<< (std::basic_ostream<CharT, Traits>& os
+ , std::basic_string<CharT, ichar_traits<CharT> > const& str)
+ {
+ return os<< str.c_str();
+ }
 
  } // namespace common
 } // namespace cgi
 
-// Allow output using standard streams (conserves original case).
-template <typename CharT, typename Traits>
-std::basic_ostream<CharT, Traits>&
- operator<< (std::basic_ostream<CharT, Traits>& os
- , const std::basic_string<CharT
- , cgi::common::ichar_traits<CharT> >& str)
-{
- return os<< str.c_str();
-}
-
 #endif // BOOST_CGI_COMMON_NAME_HPP_INCLUDED__
 


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