summaryrefslogtreecommitdiff
path: root/include/leveldb/write_batch.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/leveldb/write_batch.h')
-rw-r--r--include/leveldb/write_batch.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/leveldb/write_batch.h b/include/leveldb/write_batch.h
index 40ceb03..b6d72cb 100644
--- a/include/leveldb/write_batch.h
+++ b/include/leveldb/write_batch.h
@@ -32,6 +32,11 @@ class Slice;
class LEVELDB_EXPORT WriteBatch {
public:
WriteBatch();
+
+ // Intentionally copyable.
+ WriteBatch(const WriteBatch&) = default;
+ WriteBatch& operator =(const WriteBatch&) = default;
+
~WriteBatch();
// Store the mapping "key->value" in the database.
@@ -62,8 +67,6 @@ class LEVELDB_EXPORT WriteBatch {
friend class WriteBatchInternal;
std::string rep_; // See comment in write_batch.cc for the format of rep_
-
- // Intentionally copyable
};
} // namespace leveldb