Documents why not to use boost::irange in favor of our hand-written irange

This commit is contained in:
Daniel J. Hofmann 2016-02-02 11:57:57 +01:00
parent f207d988f4
commit fbef77a942

View File

@ -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<unsigned int>(0, 15);
// std::cout << r.size() << std::endl;
// results in -4294967281. Latest Boost versions fix this, but we still support older ones.
template <typename Integer> class range
{
private: