Boost logo

Boost :

Subject: Re: [boost] boost::mpl::for_each and value_initialized
From: Domagoj Saric (dsaritz_at_[hidden])
Date: 2010-02-08 15:54:19

"Niels Dekker - address until 2010-10-10"
<niels_address_until_2010-10-10_at_[hidden]> wrote in message
> 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 

Boost list run by bdawes at, gregod at, cpdaniel at, john at