Re: [Boost-bugs] [Boost C++ Libraries] #1327: iterator value_type possibly cv-qualified

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1327: iterator value_type possibly cv-qualified
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-10-27 01:37:23


#1327: iterator value_type possibly cv-qualified
----------------------------------------------------+-----------------------
  Reporter: Shunsuke Sogame <pstade.mb_at_[hidden]> | Owner: nesotto
      Type: Bugs | Status: new
 Milestone: Boost 1.35.0 | Component: ptr_container
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
----------------------------------------------------+-----------------------
Comment (by Shunsuke Sogame <pstade.mb_at_[hidden]>):

 Replying to [comment:1 nesotto]:
> AFAICT, you can't even use boost::ptr_vector<int const>, because the
 whole library has not been designed/tested with this in mind.

 Sorry again.

 See this:
 {{{
 #include <boost/ptr_container/ptr_vector.hpp>
 #include <boost/range/const_iterator.hpp>
 #include <boost/mpl/assert.hpp>

 int main()
 {
     typedef boost::range_const_iterator< boost::ptr_vector<int> >::type
 citer_t;
     BOOST_MPL_ASSERT((boost::is_same<citer_t::value_type, int const>)); //
 pass
     BOOST_MPL_ASSERT((boost::is_same<citer_t::value_type, int>)); //
 failed
 }
 }}}

 This seems a bug.

 --

 Shunsuke Sogame

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1327#comment:3>
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