Skip to content

Commit

Permalink
throw -> std::cerr + exit(-1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldhulipala committed Apr 26, 2023
1 parent 1fd7e15 commit 843b618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/parlay/internal/uninitialized_sequence.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class uninitialized_sequence {
value_type& at(size_t i) {
if (i >= size()) {
std::cerr << "uninitialized_sequence access out of bounds: length = " +
std::to_string(size()) + ", index = " + std::to_string(i) << std::endl:
std::to_string(size()) + ", index = " + std::to_string(i) << std::endl;
exit(-1);
}
else {
Expand Down

0 comments on commit 843b618

Please sign in to comment.