Assignment is inaccessible (private in ancestor class storage::api::StorageMessage).
Add explicit delete of copy/move assignment for storage::api::MaintenanceCommand.
@@ -12,8 +12,10 @@ public:
MaintenanceCommand(const MessageType& type, const document::Bucket &bucket)
: BucketInfoCommand(type, bucket)
{}
+ MaintenanceCommand(const MaintenanceCommand &) = default;
MaintenanceCommand(MaintenanceCommand &&) = default;
- MaintenanceCommand & operator = (MaintenanceCommand &&) = default;
+ MaintenanceCommand & operator = (const MaintenanceCommand &) = delete;
+ MaintenanceCommand & operator = (MaintenanceCommand &&) = delete;
~MaintenanceCommand();
const vespalib::string& getReason() const { return _reason; };
