diff --git a/cpp/piscsi/piscsi_response.h b/cpp/piscsi/piscsi_response.h index 3d2855aa47..d016917fe3 100644 --- a/cpp/piscsi/piscsi_response.h +++ b/cpp/piscsi/piscsi_response.h @@ -48,7 +48,7 @@ class PiscsiResponse const DeviceFactory device_factory; - const StatisticsCollector collector; + [[no_unique_address]] const StatisticsCollector collector; void GetDeviceProperties(const Device&, PbDeviceProperties&) const; void GetDevice(const Device&, PbDevice&, const string&) const; diff --git a/cpp/piscsi/statistics_collector.h b/cpp/piscsi/statistics_collector.h index ed384b788b..d5d7c0ec31 100644 --- a/cpp/piscsi/statistics_collector.h +++ b/cpp/piscsi/statistics_collector.h @@ -15,8 +15,6 @@ class StatisticsCollector { friend class PiscsiResponse; -private: - StatisticsCollector() = default; ~StatisticsCollector() = default;