[Boost-bugs] [Boost C++ Libraries] #1301: copy-initialization from const-qualified object doesn't work

Subject: [Boost-bugs] [Boost C++ Libraries] #1301: copy-initialization from const-qualified object doesn't work
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-10-05 16:56:26


#1301: copy-initialization from const-qualified object doesn't work
---------------------------------------------------+------------------------
 Reporter: Shunsuke Sogame <pstade.mb_at_[hidden]> | Owner: fcacciola
     Type: Bugs | Status: new
Milestone: Boost 1.35.0 | Component: optional
  Version: Boost 1.34.1 | Severity: Problem
 Keywords: |
---------------------------------------------------+------------------------
 A copy-initialization from const-qualified object
 doesn't work on gcc-3.4 and gcc-4.1, whereas
 msvc-7.1 and msvc-8.0 work.

     int const i = 10;
     boost::optional<int const &> o = i; // copy-initialization
     BOOST_TEST(&*o == &i); // failed on gcc3.4 and 4.1.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1301>
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:49:56 UTC