fix thrown exception

This commit is contained in:
Eric Mertens 2023-04-04 08:57:50 -07:00
parent aef729afe4
commit 00b5e86b4b

View File

@ -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"};
}
}
}