Boost logo

Boost-Commit :

From: ramey_at_[hidden]
Date: 2008-06-07 19:44:17


Author: ramey
Date: 2008-06-07 19:44:17 EDT (Sat, 07 Jun 2008)
New Revision: 46224
URL: http://svn.boost.org/trac/boost/changeset/46224

Log:
add typename for dependent type
Text files modified:
   trunk/libs/serialization/src/basic_xml_grammar.ipp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/serialization/src/basic_xml_grammar.ipp
==============================================================================
--- trunk/libs/serialization/src/basic_xml_grammar.ipp (original)
+++ trunk/libs/serialization/src/basic_xml_grammar.ipp 2008-06-07 19:44:17 EDT (Sat, 07 Jun 2008)
@@ -129,7 +129,7 @@
 struct append_char {
     String & contents;
     void operator()(const unsigned int char_value) const {
- const typename String::value_type z = char_value;
+ const BOOST_DEDUCED_TYPENAME String::value_type z = char_value;
         contents += z;
     }
     append_char(String & contents_)
@@ -142,7 +142,7 @@
     String & contents;
     template<class X, class Y>
     void operator()(const X & /*x*/, const Y & /*y*/) const {
- const typename String::value_type z = c;
+ const BOOST_DEDUCED_TYPENAME String::value_type z = c;
         contents += z;
     }
     append_lit(String & contents_)


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