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
path: root/coding
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2018-10-26 14:41:27 +0300
committerTatiana Yan <tatiana.kondakova@gmail.com>2018-10-26 17:10:18 +0300
commit3d481801c1de0830d56def278385fa3bd6434bdb (patch)
tree92caa8721d9cdc121b7623a96c4b7297f573cf79 /coding
parent424354cf3d2c92e3d8e77692c2cd929188894535 (diff)
[eye] review fixes
Diffstat (limited to 'coding')
-rw-r--r--coding/serdes_json.hpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/coding/serdes_json.hpp b/coding/serdes_json.hpp
index cedcd56acf..65e4565027 100644
--- a/coding/serdes_json.hpp
+++ b/coding/serdes_json.hpp
@@ -14,6 +14,7 @@
#include <cstring>
#include <memory>
#include <type_traits>
+#include <unordered_set>
#include <utility>
#include <vector>
@@ -228,7 +229,7 @@ public:
RestoreContext(outerContext);
}
- template <typename T, typename H>
+ template <typename T, class H = std::hash<T>>
void operator()(std::unordered_set<T, H> & dest, char const * name = nullptr)
{
json_t * outerContext = SaveContext(name);
@@ -251,12 +252,6 @@ public:
RestoreContext(outerContext);
}
- template <typename T>
- void operator()(std::unordered_set<T> & dest, char const * name = nullptr)
- {
- (*this)<std::unordered_set<T>::key_type, std::unordered_set<T>::hasher>(dest, name);
- }
-
template <typename T, size_t N>
void operator()(std::array<T, N> & dst, char const * name = nullptr)
{