From 1717f3af087e44d2c4b7fe2b35abc29a33d6d315 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 28 Mar 2009 07:48:03 +0000 Subject: [PATCH] declare everything as class to avoid angering the VC++ gods. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67931 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/SmallPtrSet.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/llvm/ADT/SmallPtrSet.h b/include/llvm/ADT/SmallPtrSet.h index 1818a11a9da..47af22884dd 100644 --- a/include/llvm/ADT/SmallPtrSet.h +++ b/include/llvm/ADT/SmallPtrSet.h @@ -30,14 +30,16 @@ class PointerLikeTypeInfo { // Provide PointerLikeTypeInfo for all pointers. template -struct PointerLikeTypeInfo { +class PointerLikeTypeInfo { +public: static inline void *getAsVoidPointer(T* P) { return P; } static inline T *getFromVoidPointer(void *P) { return static_cast(P); } }; template -struct PointerLikeTypeInfo { +class PointerLikeTypeInfo { +public: static inline const void *getAsVoidPointer(const T* P) { return P; } static inline const T *getFromVoidPointer(const void *P) { return static_cast(P); -- 2.34.1