Subject: [Boost-bugs] [Boost C++ Libraries] #9915: Documentation issues regarding vector constructors and resize methods - value/default initialization
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-16 21:09:03
#9915: Documentation issues regarding vector constructors and resize methods -
value/default initialization
-------------------------------------------+------------------------
Reporter: Adam Romanek <romanek.adam@â¦> | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: Boost 1.56.0 | Component: container
Version: Boost 1.55.0 | Severity: Problem
Keywords: vector, documentation |
-------------------------------------------+------------------------
As for Boost 1.54:
The documentation of boost::container::vector::resize(size_type) says the
elements are default constructed. The same applies to the respective
constructor: boost::container::vector(size_type n). Seems that the
implementation is different - the new elements are value-initialized, just
as it is defined for the std::vector in C++11.
As for Boost 1.55:
The documentation of boost::container::resize(size_type new_size,
default_init_t) says the new elements are value initialized, where it
should say they are default initialized. Note that the documentation of
the respective constructor is correct and says the elements are default
constructed.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9915> 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:16 UTC