Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68676 - trunk/boost/spirit/home/support/detail
From: hartmut.kaiser_at_[hidden]
Date: 2011-02-06 13:59:00


Author: hkaiser
Date: 2011-02-06 13:58:59 EST (Sun, 06 Feb 2011)
New Revision: 68676
URL: http://svn.boost.org/trac/boost/changeset/68676

Log:
Spirit: fixing basic_hold_any<> for wchar_t
Text files modified:
   trunk/boost/spirit/home/support/detail/hold_any.hpp | 10 ++++++----
   1 files changed, 6 insertions(+), 4 deletions(-)

Modified: trunk/boost/spirit/home/support/detail/hold_any.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/hold_any.hpp (original)
+++ trunk/boost/spirit/home/support/detail/hold_any.hpp 2011-02-06 13:58:59 EST (Sun, 06 Feb 2011)
@@ -188,8 +188,9 @@
         ///////////////////////////////////////////////////////////////////////
         struct empty {};
 
- inline std::istream&
- operator>> (std::istream& i, empty&)
+ template <typename Char>
+ inline std::basic_istream<Char>&
+ operator>> (std::basic_istream<Char>& i, empty&)
         {
             // If this assertion fires you tried to insert from a std istream
             // into an empty hold_any instance. This simply can't work, because
@@ -205,8 +206,9 @@
             return i;
         }
 
- inline std::ostream&
- operator<< (std::ostream& o, empty const&)
+ template <typename Char>
+ inline std::basic_ostream<Char>&
+ operator<< (std::basic_ostream<Char>& o, empty const&)
         {
             return o;
         }


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