diff options
author | costan <costan@google.com> | 2018-03-21 00:47:18 -0700 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2018-03-21 01:17:59 -0700 |
commit | 74f032ff6f2465160366d865b1bb89a45dc2046b (patch) | |
tree | f8180f20b6d85fc70a8e3054c3ce46732dfa3c0e /include/leveldb/iterator.h | |
parent | 8e75db8623703cdc25ec3cd06f82129296672489 (diff) | |
download | leveldb-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/iterator.h')
-rw-r--r-- | include/leveldb/iterator.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/leveldb/iterator.h b/include/leveldb/iterator.h index ff3b566..436508a 100644 --- a/include/leveldb/iterator.h +++ b/include/leveldb/iterator.h @@ -24,6 +24,10 @@ namespace leveldb { class LEVELDB_EXPORT Iterator { public: Iterator(); + + Iterator(const Iterator&) = delete; + Iterator& operator=(const Iterator&) = delete; + virtual ~Iterator(); // An iterator is either positioned at a key/value pair, or @@ -84,10 +88,6 @@ class LEVELDB_EXPORT Iterator { Cleanup* next; }; Cleanup cleanup_; - - // No copying allowed - Iterator(const Iterator&); - void operator=(const Iterator&); }; // Return an empty iterator (yields nothing). |