Fix compile errors

This commit is contained in:
Timofey Khoruzhii 2022-10-28 23:59:47 +03:00
parent dd95598c2a
commit d441213c58
3 changed files with 8 additions and 3 deletions

View file

@ -8,6 +8,11 @@
#include <optional>
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}; }

View file

@ -20,7 +20,7 @@ namespace clippy::targets {
class Target {
public:
virtual void Execute() = 0;
virtual ~Target() = 0;
virtual ~Target() = default;
};
class EmptyTarget : public Target {

View file

@ -19,7 +19,7 @@ bool CheckPatternParametresImpl(const std::vector<std::string>& args,
}
template <size_t index, typename T, typename... Args,
std::enable_if_t<!std::is_same_v<T, Parameter>, bool>>
std::enable_if_t<!std::is_same_v<T, Parameter>, bool> = true>
bool CheckPatternParametresImpl(const std::vector<std::string>& args, T&& head,
Args&&... pattern);
@ -40,7 +40,7 @@ bool CheckPatternParametresImpl(const std::vector<std::string>& args, T&& p,
}
template <size_t index, typename T, typename... Args,
std::enable_if_t<!std::is_same_v<T, Parameter>, bool> = true>
std::enable_if_t<!std::is_same_v<T, Parameter>, bool>>
bool CheckPatternParametresImpl(const std::vector<std::string>& args, T&& head,
Args&&... pattern) {
if (index >= args.size()) {