Boost logo

Boost :

Subject: Re: [boost] boost::mpl::for_each and value_initialized
From: Domagoj Saric (dsaritz_at_[hidden])
Date: 2010-02-07 15:21:12


"Niels Dekker - address until 2010-10-10"
<niels_address_until_2010-10-10_at_[hidden]> wrote in message
news:42DCB3BF36D94D4D9714434725145288_at_lumcnet.prod.intern...
>> - MSVC bug #100744, despite being marked as "Closed, Won't Fix" [3],
>> has actually been fixed in VC9 [4].
>
> I'm sorry, MSVC bug #100744 is still there, even though #335987 has been
> fixed. VC9 deals with POD types correctly, but may not do so for non-POD
> aggregate class types.

but if this is so, shouldn't the proposed patch atleast be modified to:

 #ifdef BOOST_VALUE_INITIALIZATION_NEEDS_MEMSET
    if
    (
      !(
          ( _MSC_VER >= 1500 ) &&
          ( is_pod<T>::value )
        )
    )
     std::memset(&x, 0, sizeof(x));

 #endif

?

-- 
 "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