Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10336: compilation error in iterator_range and unordered_map
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-05 10:56:23
#10336: compilation error in iterator_range and unordered_map
-------------------------------+------------------------
Reporter: gast128@⦠| Owner: neilgroves
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: range
Version: Boost 1.56.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+------------------------
Comment (by gast128@â¦):
You can work around it:
{{{#!cpp
const ContainerIterator itBegin = cnt.cbegin();
const ContainerIterator itEnd = cnt.cend();
ContainerIteratorRange rng(itBegin, itEnd);
}}}
somehow the 'const' does the trick.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10336#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:17 UTC