diff options
Diffstat (limited to 'src/2020/day5/aoc.h')
-rw-r--r-- | src/2020/day5/aoc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2020/day5/aoc.h b/src/2020/day5/aoc.h index 9e7ea4f..d434790 100644 --- a/src/2020/day5/aoc.h +++ b/src/2020/day5/aoc.h @@ -14,7 +14,7 @@ struct seat { int col; int id() const noexcept { return row * 8 + col; } - bool operator<(const seat& other) { return id() < other.id(); } + bool operator<(const seat& other) const noexcept { return id() < other.id(); } seat(int r, int c) : row(r), col(c) {} |