diff --git a/CHANGELOG.md b/CHANGELOG.md index b97229839..dd22861da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ - Account for vehicle/job compatibility in heuristic regrets values (#982) - Slightly reduce computing times for SWAP* operator (#987) - Refactor `RouteSplit` operator (#996) +- Update cxxopts to 3.1.1 (#997) ### Fixed diff --git a/include/cxxopts b/include/cxxopts index c74846a89..eb787304d 160000 --- a/include/cxxopts +++ b/include/cxxopts @@ -1 +1 @@ -Subproject commit c74846a891b3cc3bfa992d588b1295f528d43039 +Subproject commit eb787304d67ec22f7c3a184ee8b4c481d04357fd diff --git a/src/main.cpp b/src/main.cpp index eed61f64a..ccf9e6b6c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -120,8 +120,8 @@ int main(int argc, char** argv) { s_to_ms * std::stof(limit_arg))); } } catch (const std::exception&) { - throw cxxopts::OptionException("Argument '" + limit_arg + - "' failed to parse"); + throw cxxopts::exceptions::exception("Argument '" + limit_arg + + "' failed to parse"); } if (parsed_args.count("help") != 0) { @@ -133,7 +133,7 @@ int main(int argc, char** argv) { std::cout << "vroom " << vroom::get_version() << "\n"; exit(0); } - } catch (const cxxopts::OptionException& e) { + } catch (const cxxopts::exceptions::exception& e) { // cxxopts outputs the failed parameter but no other details, so we add some // (likely) context const auto exc = vroom::InputException(": invalid numerical value.");