From 17e73fa9dc148aec95ee52c005c2192fd5f9c319 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Fri, 4 Jun 2010 16:23:20 -0400 Subject: [PATCH] Correcting includes and namespaces for Boost Spirit Classic --- mirc/includes/parser.h | 10 +++++----- mirc/src/script.cpp | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mirc/includes/parser.h b/mirc/includes/parser.h index cc6b8c3..b04232e 100644 --- a/mirc/includes/parser.h +++ b/mirc/includes/parser.h @@ -11,10 +11,10 @@ #include #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -26,7 +26,7 @@ class MIRCScriptManager; using namespace std; using namespace boost; -using namespace boost::spirit; +using namespace boost::spirit::classic; typedef QMap mirc_variables; typedef position_iterator iterator_t; diff --git a/mirc/src/script.cpp b/mirc/src/script.cpp index 7bbaa85..9ece82a 100644 --- a/mirc/src/script.cpp +++ b/mirc/src/script.cpp @@ -20,7 +20,7 @@ bool MIRCScript::load(QString filename) { bool MIRCScript::parse(QString code) { const char* _code = code.toLatin1(); - parse_info<> info = boost::spirit::parse((const char*)code.toLatin1(), *parser); + parse_info<> info = boost::spirit::classic::parse((const char*)code.toLatin1(), *parser); loaded = info.full; if (loaded) { script = interpreter->script.code; @@ -41,9 +41,9 @@ bool MIRCScript::run() { const char* _code = (const char*)script.toLatin1(); begin = new iterator_t(_code, _code+strlen(_code)); end = new iterator_t(); - parse_info info = boost::spirit::parse(*begin, *end, *parser); + parse_info info = boost::spirit::classic::parse(*begin, *end, *parser); */ - parse_info<> info = boost::spirit::parse((const char*)script.toLatin1(), *parser); + parse_info<> info = boost::spirit::classic::parse((const char*)script.toLatin1(), *parser); if (info.full) { _variables = interpreter->vars; }