fix thrown exception
This commit is contained in:
parent
aef729afe4
commit
00b5e86b4b
|
@ -79,7 +79,7 @@ auto ExpandLines(Input const& lines) -> std::set<aocpp::Coord>
|
|||
result.insert({x, a.y});
|
||||
}
|
||||
} else {
|
||||
throw new std::runtime_error{"Bad line segment"};
|
||||
throw std::runtime_error{"Bad line segment"};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user