Skip to content

Commit

Permalink
fix: add out_of_range to avoid potential problems
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticLampyrid committed Apr 28, 2024
1 parent eb52e41 commit fdc57c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/infrastructure/dto/location.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ struct DTO_Location {
return i.at(index);
index -= count;
}
throw std::out_of_range("Index out of range");
}
};

Expand Down

0 comments on commit fdc57c6

Please sign in to comment.