removed nascent ST2052-1 support pending completion
[asdcplib.git] / src / KM_platform.h
index c040261a94e9dd9dbb18bb680ce6e06fbe7dc156..578f545ac3fd0f2ab9f58c241603c32e309eb3ad 100644 (file)
@@ -166,7 +166,7 @@ namespace Kumu
       ~mem_ptr() { delete m_p; }
 
       inline T&   operator*()  const { return *m_p; }
-      inline T*   operator->() const { return m_p; }
+      inline T*   operator->() const { assert(m_p!=0); return m_p; }
       inline      operator T*()const { return m_p; }
       inline const mem_ptr<T>& operator=(T* p) { this->set(p); return *this; }
       inline T*   set(T* p)          { delete m_p; m_p = p; return m_p; }