I am moving a large and complex C ++ server from Solaris to Windows. I ran into a lot of problems due to uninitialized member variables. On Solaris, they default to 0, so everything works fine. But in windows, these member variables get the garbage values ββassigned to create chaos in the system.
The code base is too large to manually check each class. Are you aware of any Visual Studio tools or settings that would give a warning if member variables are not initialized in the constructor?
Thanks in advance!
source share