diff --git a/include/wx/any.h b/include/wx/any.h index 2a1bf7142a..0e3e4a9bea 100644 --- a/include/wx/any.h +++ b/include/wx/any.h @@ -112,7 +112,7 @@ public: */ // FIXME-VC6: remove this hack when VC6 is no longer supported template - bool CheckType(T* reserved = NULL); + bool CheckType(T* reserved = NULL) const; private: }; @@ -772,7 +772,7 @@ public: */ // FIXME-VC6: remove this hack when VC6 is no longer supported template - bool CheckType(T* = NULL) + bool CheckType(T* = NULL) const { return m_type->CheckType(); } @@ -1054,7 +1054,7 @@ private: template -inline bool wxAnyValueType::CheckType(T* reserved) +inline bool wxAnyValueType::CheckType(T* reserved) const { wxUnusedVar(reserved); return wxAnyValueTypeImpl::IsSameClass(this);