Re:Zeroing Memory is Hard: VC++ 2015 arrays
by ryuuchin on Monday July 18, 2016 @08:36PM
(#12118809)
With msvc the /sdl flag can zero initialize class members to zero[1] (among other things). This runs before the constructor. Aside from the warnings that get turned into errors (you can disable the warning to bypass this behavior) it also does limited pointer sanitization and turns on strict_gs_check.
[1] https://msdn.microsoft.com/en-us/library/jj161081.aspx