From d441213c58707262e0342665739d73b919e5d08c Mon Sep 17 00:00:00 2001 From: Timofey Khoruzhii Date: Fri, 28 Oct 2022 23:59:47 +0300 Subject: [PATCH] Fix compile errors --- src/clippy/project_list.hpp | 5 +++++ src/clippy/target.hpp | 2 +- src/utils/parametres.hpp | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/clippy/project_list.hpp b/src/clippy/project_list.hpp index 203cbfc..5cefefe 100644 --- a/src/clippy/project_list.hpp +++ b/src/clippy/project_list.hpp @@ -8,6 +8,11 @@ #include struct Project { + Project() {} + + Project(std::filesystem::path root_project, std::filesystem::path configuration_file) + : root_project(root_project), configuration_file(configuration_file) {} + std::strong_ordering operator<=>(const Project&) const = default; Config GetConfig() { return Config{configuration_file, root_project}; } diff --git a/src/clippy/target.hpp b/src/clippy/target.hpp index f20f505..2184833 100644 --- a/src/clippy/target.hpp +++ b/src/clippy/target.hpp @@ -20,7 +20,7 @@ namespace clippy::targets { class Target { public: virtual void Execute() = 0; - virtual ~Target() = 0; + virtual ~Target() = default; }; class EmptyTarget : public Target { diff --git a/src/utils/parametres.hpp b/src/utils/parametres.hpp index edbcdd5..0e64edd 100644 --- a/src/utils/parametres.hpp +++ b/src/utils/parametres.hpp @@ -19,7 +19,7 @@ bool CheckPatternParametresImpl(const std::vector& args, } template , bool>> + std::enable_if_t, bool> = true> bool CheckPatternParametresImpl(const std::vector& args, T&& head, Args&&... pattern); @@ -40,7 +40,7 @@ bool CheckPatternParametresImpl(const std::vector& args, T&& p, } template , bool> = true> + std::enable_if_t, bool>> bool CheckPatternParametresImpl(const std::vector& args, T&& head, Args&&... pattern) { if (index >= args.size()) {