
"Niels Dekker - address until 2010-10-10" <niels_address_until_2010-10-10@xs4all.nl> wrote in message news:4716CDF08A964D95A470AB95BEEFD53B@lumcnet.prod.intern...
Do I understand correctly that you want the memset call to be skipped for those compiler versions that have implemented value-initialization entirely correctly? Do you know exactly which compiler versions do implement value-initialization correctly?
I'm only concerned with boost::mpl::for_each This function calls a function object by passing an object of the matching type. The contents of this object usually do not matter -- and in case they do, the programmer can write a default constructor to initialize this object. So there is no need in boost::mpl::for_each to call value_initialized. Another solution would be to pass a zero pointer to an object of this type. Anyway -- this argument is only used to select the correct template method of the function object passed. Peter