accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Sep 18 2010 : 06:46:54 AM
|
It is a great idea, but in C++ it isn't very obvious what you call a constructor/destructor call. Finding new <classname> and delete <objecttype> would work, but if you create something via macro or function call or via template constructs (i.e. in a template class), the detection of constructor calling is much more tricky. Furthermore, objects can be destructed when there is no more reference to it (or by garbage collector in C#)
So in my opinion, if we implemented such a feature it would be patchy at best. |
Edited by - accord on Sep 18 2010 07:06:48 AM |
|
|