Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60828 - trunk/boost/wave
From: hartmut.kaiser_at_[hidden]
Date: 2010-03-25 13:19:34


Author: hkaiser
Date: 2010-03-25 13:19:33 EDT (Thu, 25 Mar 2010)
New Revision: 60828
URL: http://svn.boost.org/trac/boost/changeset/60828

Log:
Wave: fixed compilation problems
Text files modified:
   trunk/boost/wave/cpp_context.hpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: trunk/boost/wave/cpp_context.hpp
==============================================================================
--- trunk/boost/wave/cpp_context.hpp (original)
+++ trunk/boost/wave/cpp_context.hpp 2010-03-25 13:19:33 EDT (Thu, 25 Mar 2010)
@@ -229,12 +229,13 @@
             has_params, is_predefined, pos, parameters, definition);
     }
     template <typename StringT>
- bool remove_macro_definition(StringT name, bool even_predefined = false)
+ bool remove_macro_definition(StringT const& undefname, bool even_predefined = false)
     {
         // strip leading and trailing whitespace
- typename StringT::size_type pos = name.find_first_not_of(" \t");
- if (pos != std::string::npos) {
- typename StringT::size_type endpos = name.find_last_not_of(" \t");
+ string_type name = undefname;
+ typename string_type::size_type pos = name.find_first_not_of(" \t");
+ if (pos != string_type::npos) {
+ typename string_type::size_type endpos = name.find_last_not_of(" \t");
             name = name.substr(pos, endpos-pos+1);
         }
 
@@ -243,8 +244,7 @@
         includes.remove_pragma_once_header(
             util::to_string<std::string>(name));
 #endif
- return macros.remove_macro(util::to_string<string_type>(name),
- macros.get_main_pos(), even_predefined);
+ return macros.remove_macro(name, macros.get_main_pos(), even_predefined);
     }
     void reset_macro_definitions()
         { macros.reset_macromap(); macros.init_predefined_macros(); }


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