Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Pimenov <m@maps.me>2015-10-23 17:47:36 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:02:37 +0300
commit0d5f7c4de8d3f499cdb96a5446a5d441877199ce (patch)
tree18b8ae8c0c9f7eab13660dbee050d688412155da /coding/compressed_bit_vector.hpp
parentcea61ad8077c64501eec492e864f2b2ee681681f (diff)
Review fixes.
Diffstat (limited to 'coding/compressed_bit_vector.hpp')
-rw-r--r--coding/compressed_bit_vector.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/coding/compressed_bit_vector.hpp b/coding/compressed_bit_vector.hpp
index 93329a1423..18fd8f6982 100644
--- a/coding/compressed_bit_vector.hpp
+++ b/coding/compressed_bit_vector.hpp
@@ -1,3 +1,5 @@
+#pragma once
+
#include "coding/read_write_utils.hpp"
#include "coding/reader.hpp"
#include "coding/writer.hpp"
@@ -74,7 +76,7 @@ public:
DenseCBV() = default;
// Builds a dense CBV from a list of positions of set bits.
- DenseCBV(vector<uint64_t> const & setBits);
+ explicit DenseCBV(vector<uint64_t> const & setBits);
// Not to be confused with the constructor: the semantics
// of the array of integers is completely different.
@@ -115,9 +117,9 @@ public:
friend class CompressedBitVectorBuilder;
using TIterator = vector<uint64_t>::const_iterator;
- SparseCBV(vector<uint64_t> const & setBits);
+ explicit SparseCBV(vector<uint64_t> const & setBits);
- SparseCBV(vector<uint64_t> && setBits);
+ explicit SparseCBV(vector<uint64_t> && setBits);
// Returns the position of the i'th set bit.
uint64_t Select(size_t i) const;