Skip to content

Commit

Permalink
location: ostream << operator
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Sep 3, 2024
1 parent a6481a5 commit c12b001
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/osr/lookup.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
namespace osr {

struct location {
CISTA_PRINTABLE(location)
CISTA_FRIEND_COMPARABLE(location)
friend std::ostream& operator<<(std::ostream& out, location const& l) {
return out << l.pos_ << ", lvl=" << to_float(l.lvl_);
}
geo::latlng pos_;
level_t lvl_;
};
Expand Down

0 comments on commit c12b001

Please sign in to comment.