|
Boost-Commit : |
From: hartmut.kaiser_at_[hidden]
Date: 2008-04-20 10:01:35
Author: hkaiser
Date: 2008-04-20 10:01:34 EDT (Sun, 20 Apr 2008)
New Revision: 44634
URL: http://svn.boost.org/trac/boost/changeset/44634
Log:
Spirit: Added a missing header #include.
Text files modified:
trunk/boost/spirit/home/support/detail/lexer/generator.hpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/boost/spirit/home/support/detail/lexer/generator.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/lexer/generator.hpp (original)
+++ trunk/boost/spirit/home/support/detail/lexer/generator.hpp 2008-04-20 10:01:34 EDT (Sun, 20 Apr 2008)
@@ -6,6 +6,7 @@
#ifndef BOOST_LEXER_GENERATOR_HPP
#define BOOST_LEXER_GENERATOR_HPP
+#include <cstring> // memcmp
#include "char_traits.hpp"
#include "partition/charset.hpp"
#include "partition/equivset.hpp"
@@ -754,7 +755,8 @@
continue;
}
- if (::memcmp (first_, second_, sizeof(std::size_t) *
+ using namespace std; // some systems have memcmp in namespace std
+ if (memcmp (first_, second_, sizeof(std::size_t) *
dfa_alphabet_) == 0)
{
index_set_.insert (curr_index_);
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