Hi,
I would like to derive a class from pugi::xml_node to add more functionality to the class.
I get stuck when I try to append a child because pug::xml_node append_child return pugi::xml_node (not a pointer).
This is what I've tried, but it failes to compile.
Is there any way to do this?Code:PugiXmlNode PugiXmlNode::appendChild(std::string name) { return (PugiXmlNode) (append_child(name.c_str())); }
W.