summaryrefslogtreecommitdiffstats
path: root/storageapi/src
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-07-31 11:58:20 +0200
committerTor Egge <Tor.Egge@broadpark.no>2019-07-31 11:58:20 +0200
commit9fe92726bb5e746d144740cc68841b649fe0a2e4 (patch)
tree544c82ab7ca21e9899aaba1596481e5feb29c70b /storageapi/src
parent9421630708db4764c6c8faa3a3de3f3d2cab0046 (diff)
Assignment is inaccessible (private in ancestor class storage::api::StorageMessage).
Add explicit delete of copy/move assignment for storage::api::MaintenanceCommand.
Diffstat (limited to 'storageapi/src')
-rw-r--r--storageapi/src/vespa/storageapi/messageapi/maintenancecommand.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/storageapi/src/vespa/storageapi/messageapi/maintenancecommand.h b/storageapi/src/vespa/storageapi/messageapi/maintenancecommand.h
index 029365973c5..1b149780c9d 100644
--- a/storageapi/src/vespa/storageapi/messageapi/maintenancecommand.h
+++ b/storageapi/src/vespa/storageapi/messageapi/maintenancecommand.h
@@ -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; };