|
Boost-Commit : |
From: hartmut.kaiser_at_[hidden]
Date: 2008-04-20 10:01:19
Author: hkaiser
Date: 2008-04-20 10:01:18 EDT (Sun, 20 Apr 2008)
New Revision: 44633
URL: http://svn.boost.org/trac/boost/changeset/44633
Log:
Spirit: Added a missing header #include.
Text files modified:
trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp (original)
+++ trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp 2008-04-20 10:01:18 EDT (Sun, 20 Apr 2008)
@@ -7,6 +7,7 @@
#define BOOST_LEXER_RE_TOKENISER_HPP
#include <map>
+#include <cstring> // memcpy
#include "num_token.hpp"
#include "../../runtime_error.hpp"
#include "../../size_t.hpp"
@@ -421,7 +422,8 @@
}
token_.set (num_token::MACRO, null_token);
- ::memcpy (token_._macro, start_, len_ * sizeof(CharT));
+ using namespace std; // some systems have memcpy in namespace std
+ memcpy (token_._macro, start_, len_ * sizeof(CharT));
token_._macro[len_] = 0;
}
};
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