Closed godrays closed 4 years ago
try { std::cout << args["<x>"].asLong() << std::endl; } catch (std::exception & e) { std::cout << e.what() << std::end; }
If stol fails due to conversion, following message is shown:
stol: no conversion
Can it be more specific? Like:
try { std::cout << args["<x>"].asLong() << std::endl; } catch (std::exception & e) { std::cout << e.what() << std::end; }
If stol fails due to conversion, following message is shown:
stol: no conversion
Can it be more specific? Like: