diff --git a/src/include/homeobject/homeobject.hpp b/src/include/homeobject/homeobject.hpp index 4c3d5f7d..7d98f43b 100644 --- a/src/include/homeobject/homeobject.hpp +++ b/src/include/homeobject/homeobject.hpp @@ -16,6 +16,7 @@ class ShardManager; ENUM(DevType, uint8_t, AUTO_DETECT = 1, HDD, NVME, UNSUPPORTED); struct device_info_t { explicit device_info_t(std::string name, DevType dtype = DevType::AUTO_DETECT) : path{std::filesystem::canonical(name)}, type{dtype} {} + bool operator ==(device_info_t const& rhs) const { return path == rhs.path && type == rhs.type; } std::filesystem::path path; DevType type; };