Update of /cvsroot/boost/boost/boost/wave
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1875/boost/wave

Modified Files:
        cpp_context.hpp 
Log Message:
Wave: Fixed the is_defined() issue.

Index: cpp_context.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/wave/cpp_context.hpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- cpp_context.hpp     6 Mar 2007 19:08:23 -0000       1.32
+++ cpp_context.hpp     8 Mar 2007 14:04:37 -0000       1.33
@@ -196,10 +196,7 @@
             is_predefined); }
     template <typename StringT>
     bool is_defined_macro(StringT const &str) 
-        { return macros.is_defined(str.begin(), str.end()); }
-    template <typename IteratorT2>
-    bool is_defined_macro(IteratorT2 const &begin, IteratorT2 const &end) 
-        { return macros.is_defined(begin, end); }
+        { return macros.is_defined(str); }
     bool get_macro_definition(typename token_type::string_type const &name, 
             bool &has_params, bool &is_predefined, position_type &pos,
             std::vector<token_type> &parameters, token_sequence_type 
&definition)
@@ -258,6 +255,10 @@
         boost::wave::context<IteratorT, lexer_type, InputPolicyT, HooksT> >;
 #endif
     
+    template <typename IteratorT2>
+    bool is_defined_macro(IteratorT2 const &begin, IteratorT2 const &end) 
+        { return macros.is_defined(begin, end); }
+
 // maintain include paths (helper functions)
     bool find_include_file (std::string &s, std::string &d, bool is_system, 
         char const *current_file) const


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to