In Win32 programming a handful of POD structs is used. Those structs often need to be zeroed out before usage.
This can be done by calling memset()
/
The only reason (that I can foresee) to not use value initialization for 'zeroing' is if you have special versions of memset
/ZeroMemory
(such as an SSE based one), or you need to avoid problems with the compiler(referring to MSVC here, as from VS2008 memset
will never become an intrinsic, but with some clever coding(not using asm) you can force the intrinsic(REP STOS
))