From b043b2a761dd151934b6b83b760584c0293a56b9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 13 Jan 2015 10:41:54 +0100 Subject: fs/AllocatedPath: add operator== --- src/fs/AllocatedPath.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx index 837c9b66b..7195a3345 100644 --- a/src/fs/AllocatedPath.hxx +++ b/src/fs/AllocatedPath.hxx @@ -162,6 +162,16 @@ public: return *this; } + gcc_pure + bool operator==(const AllocatedPath &other) const { + return value == other.value; + } + + gcc_pure + bool operator!=(const AllocatedPath &other) const { + return value != other.value; + } + /** * Allows the caller to "steal" the internal value by * providing a rvalue reference to the std::string attribute. -- cgit v1.2.3