Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Also declare overloads of a MakeDelegate() global function to
- // reduce the need for typedefs.
- // We need seperate overloads for const and non-const member functions.
- // Also, because of the weird rule about the class of derived member function pointers,
- // implicit downcasts may need to be applied later to the 'this' pointer.
- // That's why two classes (X and Y) appear in the definitions. Y must be implicitly
- // castable to X.
- // Workaround for VC6. VC6 needs void return types converted into DefaultVoid.
- // GCC 3.2 and later won't compile this unless it's preceded by 'typename',
- // but VC6 doesn't allow 'typename' in this context.
- // So, I have to use a macro.
- #define FASTDLGT_RETTYPE detail::VoidToDefaultVoid<RetType>::type
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement