Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3249: ptr_list of const items
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-07-07 20:19:19
#3249: ptr_list of const items
---------------------------------+------------------------------------------
Reporter: matcatprg@⦠| Owner: nesotto
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: ptr_container
Version: Boost 1.35.0 | Severity: Problem
Keywords: |
---------------------------------+------------------------------------------
Comment(by matcatprg@â¦):
Replying to [comment:1 anonymous]:
> I have implemented initial support for it in trunk. Play around and let
me know what you think.
>
> -Thorsten
assuming that this:
https://svn.boost.org/svn/boost/trunk/boost/ptr_container/ is the correct
repository, the compiler can't find push_back(), push_front(), begin(),
and end(). E.g:
âclass boost::ptr_list<BASE, boost::heap_clone_allocator,
std::allocator<void*> >â has no member named âbeginâ
I didn't reinstall the entire library, but just downloaded ptr_container
and used rest of old library. I don't think this is problematic b/c I
tested 1.39.0 the same way and it works fine.
Just to make sure that the const issue isn't one that was fixed by 1.39.0,
I tested it as well and it has the same problem w/ ptr_list not compiling
w/ const items.
I should mention that in the code where I'm using ptr_list I've already
switched over to non-const items in ptr_list. (B/c of abstraction there
isn't a way to accidentally tweak the internals of the object, but const
would be the theoretical ideal)
Before you go changing code, are the objects in ptr_list supposed to be
non-const by design?
Matthew A. Todd
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3249#comment:2> 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:00 UTC