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

Modified Files:
        cpp_lex_token.hpp 
Log Message:
Wave: Added the is_empty() function to token classes, returning true if the 
token has been initialized to be the end of input token (T_EOI).

Index: cpp_lex_token.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/wave/cpplexer/cpp_lex_token.hpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- cpp_lex_token.hpp   20 Dec 2006 16:55:53 -0000      1.10
+++ cpp_lex_token.hpp   3 Apr 2007 13:12:52 -0000       1.11
@@ -205,6 +205,7 @@
     operator token_id() const { return token_id(*data); }
     string_type const &get_value() const { return data->get_value(); }
     position_type const &get_position() const { return data->get_position(); }
+    bool is_empty() const { token_id(*data) == T_EOI; }
 
     void set_token_id (token_id id_) { make_unique(); data->set_token_id(id_); 
}
     void set_value (string_type const &value_) { make_unique(); 
data->set_value(value_); }


-------------------------------------------------------------------------
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