I'm using RapidXml 1.13 (
http://rapidxml.sourceforge.net/) library with VisualStudio 2013 VC++ to read and edit xml file as mentioned in this tutorial (
http://spin.atomicobject.com/2012/05/20/rapidxml-a-lightweight-xml-library-for-c/)
Here is my code to read xml file,
xml_document<> doc;
string xmlFilePath = "D:/xml/xyz.xml";
ifstream file(xmlFilePath);
vector<char> buffer((istreambuf_iterator<char>(file)), istreambuf_iterator<char>());
buffer.push_back('\0');
But compiler gives me errors in buffer.push_back('\0'),
1. error C2040: 'buffer' : 'std::vector>' differs in levels of indirection from 'char [200]'
2. error C2228: left of '.push_back' must have class/struct/union
3. IntelliSense: expression must have class type
How to solve this error ?