Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F49791882
D277.1774082272.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D277.1774082272.diff
View Options
diff --git a/src/client/client-model.hpp b/src/client/client-model.hpp
--- a/src/client/client-model.hpp
+++ b/src/client/client-model.hpp
@@ -200,6 +200,8 @@
using Result = ClientResult;
static Result update(ClientModel m, Action a);
+
+ friend bool operator==(const ClientModel& a, const ClientModel& b) = default;
};
// actions:
diff --git a/src/client/device-list-tracker.hpp b/src/client/device-list-tracker.hpp
--- a/src/client/device-list-tracker.hpp
+++ b/src/client/device-list-tracker.hpp
@@ -90,6 +90,8 @@
/// returns a list of users whose device list has changed
immer::flex_vector<std::string> diff(DeviceListTracker that) const;
+
+ friend bool operator==(const DeviceListTracker& a, const DeviceListTracker& b) = default;
};
template<class Archive>
diff --git a/src/client/sdk-model.hpp b/src/client/sdk-model.hpp
--- a/src/client/sdk-model.hpp
+++ b/src/client/sdk-model.hpp
@@ -34,6 +34,8 @@
using Result = SdkResult;
static SdkResult update(SdkModel s, SdkAction a);
+
+ friend bool operator==(const SdkModel& a, const SdkModel& b) = default;
};
template<class Archive>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 21, 1:37 AM (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1215255
Default Alt Text
D277.1774082272.diff (1 KB)
Attached To
Mode
D277: Implement operator== for Sdk-model
Attached
Detach File
Event Timeline
Log In to Comment