diff options
author | Chanho Park <chanho61.park@samsung.com> | 2014-12-11 18:55:56 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-12-11 18:55:56 +0900 |
commit | 08c1e93fa36a49f49325a07fe91ff92c964c2b6c (patch) | |
tree | 7a7053ceb8874b28ec4b868d4c49b500008a102e /libs/range/doc/upgrade.qbk | |
parent | bb4dd8289b351fae6b55e303f189127a394a1edd (diff) | |
download | boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.gz boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.bz2 boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.zip |
Imported Upstream version 1.57.0upstream/1.57.0
Diffstat (limited to 'libs/range/doc/upgrade.qbk')
-rw-r--r-- | libs/range/doc/upgrade.qbk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/range/doc/upgrade.qbk b/libs/range/doc/upgrade.qbk index e97f761073..47fa8cb9f2 100644 --- a/libs/range/doc/upgrade.qbk +++ b/libs/range/doc/upgrade.qbk @@ -5,12 +5,30 @@ /] [section:upgrade Upgrade version of Boost.Range] +[section:upgrade_from_1_55 Upgrade from version 1.55] +# __iterator_range__ is now implemented by implementing the member functions +`size()`, `operator[]` via inheritance of base-classes specialized by the +traversal type of the underlying iterator. This is normally requires no +alteration of code. It does mean that types that derive from iterator_range may +need to prefix `this->` to the various member functions. Additionally it has +been noted that some calling code was relying on member functions such as +`size()` being present despite the underlying iterators not being random-access +due to `iterator_reference<Iter>::type` not being a reference. The suggested +refactoring is to use `boost::size(rng)`. +# The undocumented __iterator_range__ `pop_front()` has been deprecated and is +replaced by `drop_front(). Similarly `pop_back()` has been replaced by +`drop_back()`. + +[endsect] + [section:upgrade_from_1_49 Upgrade from version 1.49] # __size__ now returns the type Rng::size_type if the range has size_type; otherwise range_size<Rng>::type is used. This is the distance type promoted to an unsigned type. +[endsect] + [section:upgrade_from_1_45 Upgrade from version 1.45] # __size__ in addition to supporting __random_access_range__ now also supports extensibility via calls to the unqualified `range_calculate_size(rng)` function. |