S
S S
Hi
I have a library which is using 'new' at many places. I want to
overload global new operator, but at the same time I do not want to
overload it for the users of this library. Specifically, I want to
overload it only in my code, not in user's code.
Class specific overloading is not option for me. (Because of heavy
usage of basic data types too)
I thought of defining 'new' in a namespace, and I could have used
'using namespace new_n' (something like that in some top level header
file to include in all over my code). But that is conflicting with
global new, hence I am not able to compile. Hence namespace seems not
good option??
Any help is greatly appreciated.
Thanks
I have a library which is using 'new' at many places. I want to
overload global new operator, but at the same time I do not want to
overload it for the users of this library. Specifically, I want to
overload it only in my code, not in user's code.
Class specific overloading is not option for me. (Because of heavy
usage of basic data types too)
I thought of defining 'new' in a namespace, and I could have used
'using namespace new_n' (something like that in some top level header
file to include in all over my code). But that is conflicting with
global new, hence I am not able to compile. Hence namespace seems not
good option??
Any help is greatly appreciated.
Thanks