summaryrefslogtreecommitdiff
path: root/include/leveldb/table.h
diff options
context:
space:
mode:
authorcostan <costan@google.com>2018-03-21 00:47:18 -0700
committerVictor Costan <pwnall@chromium.org>2018-03-21 01:17:59 -0700
commit74f032ff6f2465160366d865b1bb89a45dc2046b (patch)
treef8180f20b6d85fc70a8e3054c3ce46732dfa3c0e /include/leveldb/table.h
parent8e75db8623703cdc25ec3cd06f82129296672489 (diff)
downloadleveldb-74f032ff6f2465160366d865b1bb89a45dc2046b.tar.gz
leveldb: Require C++11.
This CL switches the public headers to C++11 default and deleted constructors, and adds override to the relevant leveldb::EnvWrapper methods. This should be a good test for C++11 compiler support. Once this CL settles, the rest of the codebase can be safely modernized to C++11. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=189873212
Diffstat (limited to 'include/leveldb/table.h')
-rw-r--r--include/leveldb/table.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/leveldb/table.h b/include/leveldb/table.h
index 2f54c4e..83078d2 100644
--- a/include/leveldb/table.h
+++ b/include/leveldb/table.h
@@ -41,6 +41,9 @@ class LEVELDB_EXPORT Table {
uint64_t file_size,
Table** table);
+ Table(const Table&) = delete;
+ void operator=(const Table&) = delete;
+
~Table();
// Returns a new iterator over the table contents.
@@ -75,10 +78,6 @@ class LEVELDB_EXPORT Table {
void ReadMeta(const Footer& footer);
void ReadFilter(const Slice& filter_handle_value);
-
- // No copying allowed
- Table(const Table&);
- void operator=(const Table&);
};
} // namespace leveldb