diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-04-11 23:00:56 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-04-11 23:00:56 +0800 |
commit | a2ff02097589cac67b5fa5b301e6449ebd4ac443 (patch) | |
tree | 58770da3ac1e13be7ebc435ec133a9e56d3e933b /src/2020/day5/aoc.h | |
parent | 56d6b697e18b42dc895a691d10c898c9c19e6e7f (diff) | |
download | advent-of-code-a2ff02097589cac67b5fa5b301e6449ebd4ac443.tar.gz advent-of-code-a2ff02097589cac67b5fa5b301e6449ebd4ac443.zip |
fix clang errors
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) {} |