hi,
I'm doing a project in which I'm accepting a tag and content string and converting into an XML which is my extended class of the string class. However I'm running into an error with my constructor
So you have a class of type CXMLString, and you're asking the compiler to use the = operator (the assignment operator) on it with an input of mystream.str().
Has the code for that been written? This is "operator overloading" and has to be written. If it hasn't been written, it's like trying to use a function that does not exist.
CXMLString inherits String class and i just want to return a stream to my object so I really don't think i need to overload = operator. And even if i need to how do you suggest i make the stream equal to an object of CXMLString.
Also, I had done another project in which i did something similar like: