I am working on switching XML parsers from TinyXml to RapidXml in our codebase.
However, RapidXml does not seem to compile with Visual Studio 2010.
Basically, in the header file I am doing
#define RAPIDXML_NO_EXCEPTIONS
#include "RapidXml/rapidxml.hpp"
using namespace rapidxml;
And in the implementation
xml_document<> xmlDoc;
xmlDoc.parse<0>(filestring);
And right there, on my second line of code, Visual Studio says
c:\users\name\development\rapidxml\rapidxml.hpp(420): error C2061: syntax error : identifier 'memory'
1> c:\users\name\development\rapidxml\rapidxml.hpp(418) : while compiling class template member function 'rapidxml::xml_node<> *rapidxml::memory_pool::allocate_node(rapidxml::node_type,const Ch *,const Ch *,size_t,size_t)'
1> with
1> [
1> Ch=char
1> ]
1> c:\users\name\development\rapidxml\rapidxml.hpp(1359) : see reference to class template instantiation 'rapidxml::memory_pool' being compiled
1> with
1> [
1> Ch=char
1> ]
1> c:\users\name\development\xmlresource.cpp(70) : see reference to class template instantiation 'rapidxml::xml_document<>' being compiled
It is the end of a long coding day and this is about it for today. Do you knowledgeable people out there have any idea what I am doing wrong here?