Skip to content

Commit

Permalink
Exit should be constructed explicitly
Browse files Browse the repository at this point in the history
Co-authored-by: pennae <[email protected]>
  • Loading branch information
9999years and pennae authored Feb 20, 2024
1 parent b500d35 commit 54c2e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libutil/exit.hh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Exit : public std::exception
public:
int status;
Exit() : status(0) { }
Exit(int status) : status(status) { }
explicit Exit(int status) : status(status) { }
virtual ~Exit();
};

Expand Down

0 comments on commit 54c2e33

Please sign in to comment.