top | item 6843800 (no title) hsmyers | 12 years ago Has GCC got the necessary pragma foo to implement this? discuss order hn newest jheriko|12 years ago one of my favourite old school tricks for achieving such breakery is:#define const_cast CONST_CAST_IS_FORBIDDEN #define dynamic_cast DYNAMIC_CAST_IS_NEVER_NECESSARYetc...its dirty, but it gets the job done panzi|12 years ago Then I'll just use a C-style cast. :P load replies (1) CJefferson|12 years ago Probably not, but could put comments in the header? yetanotherphd|12 years ago if it does, it should be called antidote.
jheriko|12 years ago one of my favourite old school tricks for achieving such breakery is:#define const_cast CONST_CAST_IS_FORBIDDEN #define dynamic_cast DYNAMIC_CAST_IS_NEVER_NECESSARYetc...its dirty, but it gets the job done panzi|12 years ago Then I'll just use a C-style cast. :P load replies (1)
jheriko|12 years ago
#define const_cast CONST_CAST_IS_FORBIDDEN #define dynamic_cast DYNAMIC_CAST_IS_NEVER_NECESSARY
etc...
its dirty, but it gets the job done
panzi|12 years ago
CJefferson|12 years ago
yetanotherphd|12 years ago