Skip to content

Commit c12b001

Browse files
location: ostream << operator
1 parent a6481a5 commit c12b001

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/osr/lookup.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
namespace osr {
1616

1717
struct location {
18-
CISTA_PRINTABLE(location)
1918
CISTA_FRIEND_COMPARABLE(location)
19+
friend std::ostream& operator<<(std::ostream& out, location const& l) {
20+
return out << l.pos_ << ", lvl=" << to_float(l.lvl_);
21+
}
2022
geo::latlng pos_;
2123
level_t lvl_;
2224
};

0 commit comments

Comments
 (0)