Re: [Boost-bugs] [Boost C++ Libraries] #1980: [Boost Graph library] functionality to reserve memory

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1980: [Boost Graph library] functionality to reserve memory
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-30 15:12:47


#1980: [Boost Graph library] functionality to reserve memory
---------------------------------------+------------------------------------
  Reporter: marc.albers@… | Owner: jewillco
      Type: Feature Requests | Status: closed
 Milestone: To Be Determined | Component: graph
   Version: Boost 1.35.0 | Severity: Optimization
Resolution: wontfix | Keywords: Boost Graph library, std::vector, reserve memory
---------------------------------------+------------------------------------

Comment (by blkohn@…):

 Replying to [comment:4 apolukhin]:
> Those functions are not really required, because m_vertices is public.
 So you can just call {{{graph.m_vertices.resize(35000);}}}

 That seems a bit lazy. m_vertices should not be part of the public
 interface, and clearly we would like to be able to reserve sizes on these
 at any time. Why not just add this functionality to the interface? Simply
 exposing m_vertices allows me to do all manner of things which may leave
 the graph in an inconsistent state.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1980#comment:5>
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:13 UTC