Make the base ndn_ElementListener public so we can cast
diff --git a/ndn-cpp/encoding/BinaryXMLElementReader.hpp b/ndn-cpp/encoding/BinaryXMLElementReader.hpp
index 7a09679..3a10ba5 100644
--- a/ndn-cpp/encoding/BinaryXMLElementReader.hpp
+++ b/ndn-cpp/encoding/BinaryXMLElementReader.hpp
@@ -14,7 +14,7 @@
* An ElementListener extends an ndn_ElementListener struct to proved an abstract virtual onReceivedElement function which wraps
* the onReceivedElement used by the ndn_ElementListener struct. You must extend this class to override onReceivedElement.
*/
-class ElementListener : private ndn_ElementListener {
+class ElementListener : public ndn_ElementListener {
public:
ElementListener()
{