mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-12 05:40:30 +00:00
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:
parent
6de6030718
commit
1717f3af08
@ -30,14 +30,16 @@ class PointerLikeTypeInfo {
|
|||||||
|
|
||||||
// Provide PointerLikeTypeInfo for all pointers.
|
// Provide PointerLikeTypeInfo for all pointers.
|
||||||
template<typename T>
|
template<typename T>
|
||||||
struct PointerLikeTypeInfo<T*> {
|
class PointerLikeTypeInfo<T*> {
|
||||||
|
public:
|
||||||
static inline void *getAsVoidPointer(T* P) { return P; }
|
static inline void *getAsVoidPointer(T* P) { return P; }
|
||||||
static inline T *getFromVoidPointer(void *P) {
|
static inline T *getFromVoidPointer(void *P) {
|
||||||
return static_cast<T*>(P);
|
return static_cast<T*>(P);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
template<typename T>
|
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 void *getAsVoidPointer(const T* P) { return P; }
|
||||||
static inline const T *getFromVoidPointer(const void *P) {
|
static inline const T *getFromVoidPointer(const void *P) {
|
||||||
return static_cast<const T*>(P);
|
return static_cast<const T*>(P);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user