diff --git a/pyopendds/dev/include/pyopendds/user.hpp b/pyopendds/dev/include/pyopendds/user.hpp index 66ae0a2..4be04f7 100644 --- a/pyopendds/dev/include/pyopendds/user.hpp +++ b/pyopendds/dev/include/pyopendds/user.hpp @@ -30,7 +30,7 @@ class IntegerType { static PyObject* get_python_class() { - return dynamic_cast(&PyLong_Type); + return reinterpret_cast(&PyLong_Type); } static void cpp_to_python(const T& cpp, PyObject*& py) @@ -90,7 +90,7 @@ class StringType { public: static PyObject* get_python_class() { - return dynamic_cast(&PyUnicode_Type); + return reinterpret_cast(&PyUnicode_Type); } static void cpp_to_python(const T& cpp, PyObject*& py, const char* encoding) @@ -140,7 +140,7 @@ class TopicTypeBase { return i->second.get(); } -private: +protected: static TopicTypes topic_types_; };