Multiple declaration of global 'delete' operator

Hey Guys,

How can I declare global 'delete' operation multiple times? Like, I've an implementation of global 'delete' operation in a file 'x' but I want a different behavior in file 'y'. However, if I override it again in file 'y' I get multiple definition error.

Thanks,
'inline' keyword solves the issue.
i think you can make use of static functions here..
It's not allowed, global allocation/deallocation functions can be replaced only once per program.

Why do you think you need this?

PS: using the inline keyword indeed makes it pass compiler checks on the few tests I ran, but the results were widely different across compilers and compiler options, as expected.
Last edited on
Topic archived. No new replies allowed.