From 8bfd67f1bb9e859932fa3c6230236ac7fcc54270 Mon Sep 17 00:00:00 2001 From: ryouze <98982999+ryouze@users.noreply.github.com> Date: Tue, 1 Oct 2024 19:09:30 +0200 Subject: [PATCH] Inherit constructor from the base class. --- src/core/args.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/args.hpp b/src/core/args.hpp index f2b35af..c598dd4 100644 --- a/src/core/args.hpp +++ b/src/core/args.hpp @@ -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; }; /** @@ -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; }; /**