lundi 5 octobre 2015

c/c++: Automatically initialize pointers to null in visual studio

I understand that overhead is involved in automatically initializing uninitialized pointers to null. But I am ready for this overhead; so how can I make Visual Studio 2010 C++ compiler to set all uninitialized pointers to null.

Please note I don't need smart pointer solution as I am debugging existing application.

Aucun commentaire:

Enregistrer un commentaire