1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-29 20:23:55 +00:00

Adding static cast to fix latest change

This commit is contained in:
Henry Fredrick Schreiner 2017-04-27 16:47:11 -04:00
parent 32a70aeb9e
commit c23661e34b

View File

@ -530,7 +530,7 @@ public:
/// Print a nice error message and return the exit code
int exit(const Error& e) const {
if(e.exit_code != ExitCodes::Success) {
if(e.exit_code != static_cast<int>(ExitCodes::Success)) {
std::cerr << "ERROR: ";
std::cerr << e.what() << std::endl;
if(e.print_help)