Skip to content

Commit

Permalink
aoc_lib: fix printing of GenericPos and GenericDelta
Browse files Browse the repository at this point in the history
  • Loading branch information
yut23 committed Dec 16, 2024
1 parent 4f2cad8 commit 30161e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aoc_lib/src/lib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ inline GenericDelta<int_type> operator-(GenericDelta<int_type> delta) {
template <std::integral int_type>
std::ostream &operator<<(std::ostream &os,
const GenericDelta<int_type> &delta) {
os << "GenericDelta(" << delta.dx << ", " << delta.dy << ")";
os << "Delta(" << delta.dx << ", " << delta.dy << ")";
return os;
}

Expand Down Expand Up @@ -319,7 +319,7 @@ inline GenericDelta<int_type> operator-(const GenericPos<int_type> &lhs,

template <std::integral int_type>
std::ostream &operator<<(std::ostream &os, const GenericPos<int_type> &pos) {
os << "GenericPos(" << pos.x << ", " << pos.y << ")";
os << "Pos(" << pos.x << ", " << pos.y << ")";
return os;
}

Expand Down

0 comments on commit 30161e5

Please sign in to comment.