I'm working on a project with TinyXML2. I'm trying to call the method XMLAttribute* FindAttribute( const char* name )
This method is defined by the implementation as:
public :
const XMLAttribute* FindAttribute( const char* name ) const;
private :
XMLAttribute* FindAttribute( const char* name );
I am a bit confused how as to how a method can have the same signature in both public and private scopes. I can only guess that it does not, although I don't really understant the const part at the end of the public definition . However, I need to call the public method but g++ sais "tinyxml2::XMLElement::FindAttribute(const char*) is private"
How can I call the public method, and what does the const part at the end of the method prototype do?