Answer the question
In order to leave comments, you need to log in
How to create a wrapper around new in c++?
I know that c++ allows you to override the new operator, but I need something different. I would like to make a smartNew operator that will work exactly like new, except that it returns smart pointers. A non-template solution comes to mind (to get sizeof), but perhaps someone already has a decent solution?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question