Documents why not to use boost::irange in favor of our hand-written irange
This commit is contained in:
parent
f207d988f4
commit
fbef77a942
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user