From 357add2c4685362afb188feaaa67b90e4d6d2361 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Mon, 10 Apr 2023 23:26:40 +0100 Subject: Update cxxopts from 3.0 to 3.1.1 !android-nn-driver:9431 Signed-off-by: Jim Flynn Change-Id: I58143445b5c5cf2aafd0838156c9543adce21e6a --- shim/sl/canonical/DriverOptions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'shim') diff --git a/shim/sl/canonical/DriverOptions.cpp b/shim/sl/canonical/DriverOptions.cpp index 5c73edfaa6..b23dd06e6f 100644 --- a/shim/sl/canonical/DriverOptions.cpp +++ b/shim/sl/canonical/DriverOptions.cpp @@ -1,5 +1,5 @@ // -// Copyright © 2022 Arm Ltd and Contributors. All rights reserved. +// Copyright © 2022-2023 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // @@ -106,7 +106,7 @@ DriverOptions::DriverOptions() string optionsAsString(rawEnv); regex whiteSpaceRegex("\\s+"); // Tokienize the string based on whitespace. - sregex_token_iterator iter(optionsAsString.begin(), optionsAsString.end(), whiteSpaceRegex, -1); + sregex_token_iterator iter(optionsAsString.begin(), optionsAsString.end(), whiteSpaceRegex, -1); sregex_token_iterator end; vector cliAsVector(iter, end); // As we're pretending to be a command line, argv[0] should be an executable name. @@ -216,7 +216,7 @@ DriverOptions::DriverOptions() { cxxopts::ParseResult result = optionsDesc.parse(argc, argv); } - catch (const cxxopts::OptionException& e) + catch (const cxxopts::exceptions::exception& e) { VLOG(DRIVER) << "An exception occurred attempting to parse program options: " << e.what(); std::cout << optionsDesc.help() << std::endl -- cgit v1.2.1