Skip to content

Commit

Permalink
Inherit constructor from the base class.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryouze committed Oct 1, 2024
1 parent 4a85b03 commit 8bfd67f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/args.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ namespace core::args {
*/
class ArgsMessage final : public std::runtime_error {
public:
explicit ArgsMessage(const std::string &message)
: std::runtime_error(message) {}
using std::runtime_error::runtime_error;
};

/**
Expand All @@ -33,8 +32,7 @@ class ArgsMessage final : public std::runtime_error {
*/
class ArgsError final : public std::runtime_error {
public:
explicit ArgsError(const std::string &message)
: std::runtime_error(message) {}
using std::runtime_error::runtime_error;
};

/**
Expand Down

0 comments on commit 8bfd67f

Please sign in to comment.