Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-04-20 09:57:48


Author: hkaiser
Date: 2008-04-20 09:57:47 EDT (Sun, 20 Apr 2008)
New Revision: 44632
URL: http://svn.boost.org/trac/boost/changeset/44632

Log:
Spirit: Added a missing header #include.
Text files modified:
   trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser_helper.hpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser_helper.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser_helper.hpp (original)
+++ trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser_helper.hpp 2008-04-20 09:57:47 EDT (Sun, 20 Apr 2008)
@@ -6,6 +6,8 @@
 #ifndef BOOST_LEXER_RE_TOKENISER_HELPER_H
 #define BOOST_LEXER_RE_TOKENISER_HELPER_H
 
+#include <cstring> // for strlen
+
 #include "../../char_traits.hpp"
 #include "../../size_t.hpp"
 #include "re_tokeniser_state.hpp"
@@ -190,6 +192,7 @@
 
         if (str_)
         {
+ using namespace std; // some systems have strlen in namespace std
             str_len_ = strlen (str_);
         }
         else
@@ -229,6 +232,7 @@
 
         if (str_)
         {
+ using namespace std; // some systems have wcslen in namespace std
             str_len_ = wcslen (str_);
         }
         else


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