Commit 3ba8a6de authored by Sean McBride's avatar Sean McBride Committed by Brad King
Browse files

Glob: Change deleted ctor and operator= from private to public



Some compilers first error that the deleted member is private before
erroring that it is deleted.
Suggested-by: Ben Boeckel's avatarBen Boeckel <ben.boeckel@kitware.com>
parent dda7a943
......@@ -54,6 +54,9 @@ public:
Glob();
~Glob();
Glob(const Glob&) = delete;
void operator=(const Glob&) = delete;
//! Find all files that match the pattern.
bool FindFiles(const std::string& inexpr, GlobMessages* messages = nullptr);
......@@ -124,10 +127,6 @@ protected:
std::vector<std::string> VisitedSymlinks;
bool ListDirs;
bool RecurseListDirs;
private:
Glob(const Glob&) = delete;
void operator=(const Glob&) = delete;
};
} // namespace @KWSYS_NAMESPACE@
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment