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
news:07DF713EB75448E9BB19C125D30B356E_at_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 

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk