LLVM 20.0.0git
|
We can't (at least, at this moment with C++14) declare CastInfo as a friend of PointerUnion like this: More...
#include "llvm/ADT/PointerUnion.h"
Public Types | |
using | From = PointerUnion< PTs... > |
Static Public Member Functions | |
template<typename To > | |
static bool | isPossible (From &F) |
template<typename To > | |
static To | doCast (From &F) |
We can't (at least, at this moment with C++14) declare CastInfo as a friend of PointerUnion like this:
The compiler complains 'Partial specialization cannot be declared as a friend'. So we define this struct to be a bridge between CastInfo and PointerUnion.
Definition at line 226 of file PointerUnion.h.
using llvm::CastInfoPointerUnionImpl< PTs >::From = PointerUnion<PTs...> |
Definition at line 227 of file PointerUnion.h.
|
inlinestatic |
Definition at line 233 of file PointerUnion.h.
|
inlinestatic |
Definition at line 229 of file PointerUnion.h.