Re: [Boost-bugs] [Boost C++ Libraries] #10172: BOOST_STRONG_TYPEDEF missing default initialization of member value

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10172: BOOST_STRONG_TYPEDEF missing default initialization of member value
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-07-03 00:20:46


#10172: BOOST_STRONG_TYPEDEF missing default initialization of member value
---------------------------------------+---------------------
  Reporter: Christopher <kemsleyc@…> | Owner:
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: None
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------+---------------------

Comment (by Christopher <kemsleyc@…>):

 I suppose it should be noted (which may be why this fix was un-fixed) that
 this will change behavior elsewhere.


 In the following example:

 typedef size_t T1 ;
 BOOST_STRONG_TYPEDEF ( size_t , T2 ) ;

 int main ()
 {
 T1 v1 ;
 T2 v2 ;
 }

 The current system has identical behavior - both v1 and v2 have an
 unspecified, garbage value. If this fix were put in place, v2 would be
 zero, no matter what.


 The current implementation, however, breaks another part of the C++ spec,
 which is highlighted in the attached example.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10172#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:16 UTC