Skip to content

Commit 02ea48c

Browse files
committed
2024 day 15: fix compilation with g++-13
1 parent 0d7f006 commit 02ea48c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2024/src/day15.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Warehouse::try_move(const Pos &pos, AbsDirection dir, bool wide_box) const {
9999
}
100100
if (tile == '.') {
101101
// move is valid
102-
return {{}};
102+
return {std::vector<Pos>{}};
103103
}
104104
if (tile == '[' || tile == ']') {
105105
// treat a wide box as two connected small boxes when moving vertically,

0 commit comments

Comments
 (0)