
"Niels Dekker - address until 2010-10-10" <niels_address_until_2010-10-10@xs4all.nl> wrote in message news:07DF713EB75448E9BB19C125D30B356E@lumcnet.prod.intern...
I would consider that a refinement. But it's not that simple. MSVC does value-initialize a lot of non-POD types correctly! (But not all of them.) Other compilers may value-initialize built-in types correctly, but not aggregates. I can't remember exactly.
Yes but if MSVC certainly always does correctly value_initialize PODs then it seems like a safe and rather simple first step...then later, as you said, more specific logic can be added...
When all that is done and stabilized, I wouldn't mind looking at some possible fine tuning, to further reduce the number of memset calls. But I'm afraid it will be a maintainer's headache.
Very well... -- "That men do not learn very much from the lessons of history is the most important of all the lessons of history." Aldous Huxley