mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 04:33:53 +00:00
Adding static cast to fix latest change
This commit is contained in:
parent
32a70aeb9e
commit
c23661e34b
@ -530,7 +530,7 @@ public:
|
|||||||
|
|
||||||
/// Print a nice error message and return the exit code
|
/// Print a nice error message and return the exit code
|
||||||
int exit(const Error& e) const {
|
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 << "ERROR: ";
|
||||||
std::cerr << e.what() << std::endl;
|
std::cerr << e.what() << std::endl;
|
||||||
if(e.print_help)
|
if(e.print_help)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user