From bfa4bd2584bbfffd41cb1728ed3577c704ce0613 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 25 Aug 2025 13:38:57 -0700 Subject: [PATCH] Removing this, which was suggested by a linter, turns out to break things by breaking equality comparison. The NetworkConfig struct would have to be re-implemented in a more modern way to allow the compiler to properly generate comparison operators, which is not important right now. --- node/NetworkConfig.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp index fad2bc7de..cba9b1232 100644 --- a/node/NetworkConfig.hpp +++ b/node/NetworkConfig.hpp @@ -240,6 +240,15 @@ class NetworkConfig { public: NetworkConfig(); + inline bool operator==(const NetworkConfig& nc) const + { + return (memcmp(this, &nc, sizeof(NetworkConfig)) == 0); + } + inline bool operator!=(const NetworkConfig& nc) const + { + return (! (*this == nc)); + } + /** * Write this network config to a dictionary for transport *