Take a careful look at this:
Try changing “MallocCreator” by “OpNewCreator” and “Widget” by “Gadget” in the typedef of line 57, recompile and run; of course you can provide default values, so that
so that you just do
I’ve just started reading “Modern C++ Design” by Andrei Alexandrescu and I’ve already my head spinning out of orbit. This is amazing (and by giving a quick look at the rest of the book, there’s even more incredible stuff there)!
Commenting