]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for VC6, it doesn't support partial template specialization
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 29 Jan 2008 11:26:30 +0000 (11:26 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 29 Jan 2008 11:26:30 +0000 (11:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/meta/movable.h

index ada53540e9434db244fdc75b84f8e1c467dee586..cb207abc39432d39fb26e0c47885536a0fe9fd7c 100644 (file)
@@ -53,6 +53,11 @@ WX_DECLARE_TYPE_MOVABLE(wxLongLong_t)
 WX_DECLARE_TYPE_MOVABLE(wxULongLong_t)
 #endif
 
+// Visual C++ 6.0 can't compile partial template specializations and as this is
+// only an optimization, we can live with pointers not being recognized as
+// movable types under VC6
+#ifndef __VISUALC6__
+
 // pointers are movable:
 template<typename T>
 struct wxIsMovable<T*>
@@ -65,6 +70,8 @@ struct wxIsMovable<const T*>
     enum { value = true };
 };
 
+#endif // !__VISUALC6__
+
 // Our implementation of wxString is written in such way that it's safe to move
 // it around. OTOH, we don't know anything about std::string.
 // (NB: we don't put this into string.h and choose to include wx/string.h from