Specify interface requirements as an C++ concept

PR #19440.
This commit is contained in:
Chocobo1
2023-08-12 20:53:03 +08:00
committed by GitHub
parent 850da9dd83
commit 69d60b5f1c
10 changed files with 144 additions and 28 deletions

View File

@@ -36,11 +36,9 @@
#include "pathfwd.h"
#include "base/interfaces/istringable.h"
class QStringView;
class Path final : public IStringable
class Path final
{
public:
Path() = default;
@@ -71,7 +69,7 @@ public:
Path relativePathOf(const Path &childPath) const;
QString data() const;
QString toString() const override;
QString toString() const;
std::filesystem::path toStdFsPath() const;
Path &operator/=(const Path &other);