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
This commit is contained in:
Chris Lattner 2009-03-28 07:48:03 +00:00
parent 6de6030718
commit 1717f3af08

View 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);