M
Martin Stich
hi,
i would like to #define my own cp_new macro like this:
#define cp_new new(__FILE__,__LINE__)
for my custom new operator. this works fine so far.
however, i would additionally like to disallow the use of
the original new (i dont want to overload the global op. new
though). i thought of something like this:
#define new {DONT_USE_NEW_ANY_MORE}
so that it wont even compile. but then, the macro in the first
place wont compile either, of course. is there a way to
accomplish this ?
thanks
martin
i would like to #define my own cp_new macro like this:
#define cp_new new(__FILE__,__LINE__)
for my custom new operator. this works fine so far.
however, i would additionally like to disallow the use of
the original new (i dont want to overload the global op. new
though). i thought of something like this:
#define new {DONT_USE_NEW_ANY_MORE}
so that it wont even compile. but then, the macro in the first
place wont compile either, of course. is there a way to
accomplish this ?
thanks
martin