Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3832: ptr_list const items
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-21 20:03:07
#3832: ptr_list const items
----------------------------------+-----------------------------------------
Reporter: matcatprg@⦠| Owner: nesotto
Type: Bugs | Status: closed
Milestone: Boost 1.43.0 | Component: ptr_container
Version: Boost 1.50.0 | Severity: Problem
Resolution: fixed | Keywords: ptr_list const
----------------------------------+-----------------------------------------
Comment (by marshall):
This compiles correctly against the trunk, but fails against the release
branch.
The error I get from clang is:
{{{
release/boost/ptr_container/ptr_sequence_adapter.hpp:249:37: error:
reference to type 'const value_type' (aka 'void *const') could not
bind to
an lvalue of type 'value_type' (aka 'const BASE *')
this->base().push_back( x ); // strong, commit
^
Downloads/main.cpp:37:13: note: in instantiation of member function
'boost::ptr_sequence_adapter<const BASE, std::list<void *,
std::allocator<void *>>, boost::heap_clone_allocator>::push_back'
requested here
intList.push_back(a);
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3832#comment:10> 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:10 UTC