From fbef77a9422f60cba460f16404b4aa1ad67f0088 Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Tue, 2 Feb 2016 11:57:57 +0100 Subject: [PATCH] Documents why not to use boost::irange in favor of our hand-written irange --- include/util/integer_range.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/util/integer_range.hpp b/include/util/integer_range.hpp index ee706bd8b..29d428f80 100644 --- a/include/util/integer_range.hpp +++ b/include/util/integer_range.hpp @@ -12,6 +12,11 @@ namespace osrm namespace util { +// Warning: do not try to replace this with Boost's irange, as it is broken on Boost 1.55: +// auto r = boost::irange(0, 15); +// std::cout << r.size() << std::endl; +// results in -4294967281. Latest Boost versions fix this, but we still support older ones. + template class range { private: