Re: [Boost-bugs] [Boost C++ Libraries] #3869: Unconditional call to memset in value_initialized()

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3869: Unconditional call to memset in value_initialized()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-01-28 14:53:05


#3869: Unconditional call to memset in value_initialized()
--------------------------+-------------------------------------------------
 Reporter: agurtovoy | Owner: niels_dekker
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: utility
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------

Comment(by niels_dekker):

 Fernando (the author of value_init) mailed me that it's okay to him if I
 add an #ifdef to utility/value_init.hpp:

 {{{
   #ifdef BOOST_VALUE_INITIALIZATION_NEEDS_MEMSET
        std::memset(&x, 0, sizeof(x));
   #endif
 }}}

 But therefor, this macro needs to be defined in
 <boost/config/compiler/...>, for the relevant compiler versions. Hereby I
 have attached my proposed additions to the trunk version of
 boost/config/compiler:
 [https://svn.boost.org/trac/boost/attachment/ticket/3869/config_compiler.patch
 config_compiler.patch] Please check if it's okay.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3869#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC