declare everything as class to avoid angering the VC++ gods.
authorChris Lattner <sabre@nondot.org>
Sat, 28 Mar 2009 07:48:03 +0000 (07:48 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 28 Mar 2009 07:48:03 +0000 (07:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67931 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallPtrSet.h

index 1818a11a9dabd326c456c13e81d4cf83becc848b..47af22884dd9c35fda264692d2515c1f806c08f7 100644 (file)
@@ -30,14 +30,16 @@ class PointerLikeTypeInfo {
 
 // Provide PointerLikeTypeInfo for all pointers.
 template<typename T>
-struct PointerLikeTypeInfo<T*> {
+class PointerLikeTypeInfo<T*> {
+public:
   static inline void *getAsVoidPointer(T* P) { return P; }
   static inline T *getFromVoidPointer(void *P) {
     return static_cast<T*>(P);
   }
 };
 template<typename T>
-struct PointerLikeTypeInfo<const T*> {
+class PointerLikeTypeInfo<const T*> {
+public:
   static inline const void *getAsVoidPointer(const T* P) { return P; }
   static inline const T *getFromVoidPointer(const void *P) {
     return static_cast<const T*>(P);