Removes potentially dangerous and misleading lat, lon subscript oeprator

This commit is contained in:
Daniel J. Hofmann 2016-02-09 09:38:25 -08:00 committed by Patrick Niklaus
parent 7d0955c0f4
commit 6cd55e535c

View File

@ -3,8 +3,6 @@
#include "util/typedefs.hpp"
#include <boost/assert.hpp>
#include "osrm/coordinate.hpp"
#include <limits>
@ -44,21 +42,6 @@ struct QueryNode
return QueryNode(static_cast<int>(90 * COORDINATE_PRECISION),
static_cast<int>(180 * COORDINATE_PRECISION), MAX_OSM_NODEID);
}
value_type operator[](const std::size_t n) const
{
switch (n)
{
case 1:
return lat;
case 0:
return lon;
default:
break;
}
BOOST_ASSERT_MSG(false, "should not happen");
return std::numeric_limits<int>::lowest();
}
};
}
}