Subject: [Boost-bugs] [Boost C++ Libraries] #10360: Since 1.56, any_range use static cast of reference instead of implicit conversion
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-08-15 13:54:28
#10360: Since 1.56, any_range use static cast of reference instead of implicit
conversion
------------------------------+------------------------
Reporter: vdavid@⦠| Owner: neilgroves
Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
Version: Boost 1.56.0 | Severity: Regression
Keywords: |
------------------------------+------------------------
Since 1.56, when dereferencing, any_range tries to use static cast of
reference instead of implicit conversion like in 1.55.
Here is an example that works with 1.55 but fails to compile with 1.56.
{{{
#include <boost/range/any_range.hpp>
#include <memory>
#include <vector>
struct A {};
int main() {
std::vector<std::shared_ptr<A> > v;
boost::any_range<std::shared_ptr<const A>,
boost::forward_traversal_tag,
std::shared_ptr<const A>,
std::ptrdiff_t> r(v);
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10360> 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