Fix stream operator for coordinate
This commit is contained in:
parent
30101e129f
commit
1bd67943bb
@ -9,6 +9,7 @@
|
||||
#include <bitset>
|
||||
#endif
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <limits>
|
||||
|
||||
namespace osrm
|
||||
@ -61,7 +62,8 @@ bool operator!=(const Coordinate lhs, const Coordinate rhs) { return !(lhs == rh
|
||||
|
||||
std::ostream &operator<<(std::ostream &out, const Coordinate coordinate)
|
||||
{
|
||||
out << "(lon:" << toFloating(coordinate.lon) << ", lat:" << toFloating(coordinate.lat) << ")";
|
||||
out << std::setprecision(12) << "(lon:" << toFloating(coordinate.lon)
|
||||
<< ", lat:" << toFloating(coordinate.lat) << ")";
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user