Debug object counter #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When in debug mode (#define DEBUG 1 for example) a object counter object should be inherited from all classes which tracks how often they have been instantiated and if all have been deleted. But really only use this in debug mode, as this takes up runtime.
The reason I want to do this is that maybe using raw pointers is faster than using unique_ptr/shared_ptr (look into this)
Look at the things we got in the first Semester FCW, as this object exists and is used in the provided C++ source code.