top | item 6843800

(no title)

hsmyers | 12 years ago

Has GCC got the necessary pragma foo to implement this?

discuss

order

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_NECESSARY

etc...

its dirty, but it gets the job done

panzi|12 years ago

Then I'll just use a C-style cast. :P

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.