Advertisement
Guest User

Untitled

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