const, baby
[asdcplib.git] / src / KM_platform.h
index 0c577a1c0e2de8b388ee0c53c607e9ddea82445d..a0e6a8ca17164820d99c1bad76b0de7306d5e876 100644 (file)
@@ -1,5 +1,5 @@
 /*
-Copyright (c) 2004-2006, John Hurst
+Copyright (c) 2004-2009, John Hurst
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
@@ -43,6 +43,8 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #  define VC_EXTRALEAN
 #  include <windows.h>
 #  include <stdlib.h>
+#  include <stdio.h>
+#  include <stdarg.h>
 #  pragma warning(disable:4786)                        // Ignore "identifer > 255 characters" warning
 
 typedef unsigned __int64   ui64_t;
@@ -166,7 +168,7 @@ namespace Kumu
       inline T&   operator*()  const { return *m_p; }
       inline T*   operator->() const { return m_p; }
       inline      operator T*()const { return m_p; }
-      inline const mem_ptr<T>& operator=(T* p) { set(p); return *this; }
+      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; }
       inline T*   get()        const { return m_p; }
       inline void release()          { m_p = 0; }