[Boost-bugs] [Boost C++ Libraries] #4213: can't have const value_initialized members

Subject: [Boost-bugs] [Boost C++ Libraries] #4213: can't have const value_initialized members
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-05-13 10:27:47


#4213: can't have const value_initialized members
----------------------------------+-----------------------------------------
 Reporter: chrisj | Owner:
     Type: Patches | Status: new
Milestone: Boost 1.43.0 | Component: None
  Version: Boost Release Branch | Severity: Problem
 Keywords: |
----------------------------------+-----------------------------------------
 Code like:

 const value_initialized<int> x;

 Is invalid in clang and comeau, as they correctly (I believe) reject
 default initialization of const objects without a user-provided default
 constructor.

 The attached patch adds a default constructor, along with a copy
 constructor and operator=, just for consistency. It makes clang++ pass all
 tests for utility, and does not make g++ fail any.

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