Fix compile errors
This commit is contained in:
parent
dd95598c2a
commit
d441213c58
|
@ -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}; }
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace clippy::targets {
|
|||
class Target {
|
||||
public:
|
||||
virtual void Execute() = 0;
|
||||
virtual ~Target() = 0;
|
||||
virtual ~Target() = default;
|
||||
};
|
||||
|
||||
class EmptyTarget : public Target {
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue