id summary reporter owner description type status milestone component version severity resolution keywords cc 3832 ptr_list const items matcatprg@… Thorsten Ottosen "Similar to ticket #3249 (https://svn.boost.org/trac/boost/ticket/3249). ptr_list has problems with const items, but works fine with non-const items. Both push_back() and push_front() cause errors. I'm using gcc/g++ 4.4.1 on Ubuntu GNU/Linux. Here is my compilation output (also included as an attachment for clarity): In file included from /usr/include/boost/ptr_container/ptr_list.hpp:19, from main.cpp:1: /usr/include/boost/ptr_container/ptr_sequence_adapter.hpp: In member function ‘void boost::ptr_sequence_adapter::push_back(typename boost::ptr_container_detail::reversible_ptr_container, CloneAllocator>::value_type) [with T = const BASE, VoidPtrSeq = std::list >, CloneAllocator = boost::heap_clone_allocator]’: main.cpp:41: instantiated from here /usr/include/boost/ptr_container/ptr_sequence_adapter.hpp:249: error: invalid conversion from ‘const void*’ to ‘void*’ /usr/include/boost/ptr_container/ptr_sequence_adapter.hpp:249: error: initializing argument 1 of ‘void std::list<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = void*, _Alloc = std::allocator]’ Again, the interesting line is: invalid conversion from ‘const void*’ to ‘void*’ The attached file source code, is the same as from the previous ticket." Bugs closed Boost 1.43.0 ptr_container Boost 1.50.0 Problem fixed ptr_list const