mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
Fix issue with my previous change for issue #205
This commit is contained in:
@@ -129,6 +129,7 @@ struct Policy {
|
||||
using slot_type = Tracked<int32_t>;
|
||||
using init_type = Tracked<int32_t>;
|
||||
using key_type = int32_t;
|
||||
using is_flat = std::false_type;
|
||||
|
||||
template <class allocator_type, class... Args>
|
||||
static void construct(allocator_type* alloc, slot_type* slot,
|
||||
|
||||
@@ -259,6 +259,7 @@ struct IntPolicy {
|
||||
using slot_type = int64_t;
|
||||
using key_type = int64_t;
|
||||
using init_type = int64_t;
|
||||
using is_flat = std::false_type;
|
||||
|
||||
static void construct(void*, int64_t* slot, int64_t v) { *slot = v; }
|
||||
static void destroy(void*, int64_t*) {}
|
||||
@@ -301,6 +302,7 @@ class StringPolicy {
|
||||
|
||||
using key_type = std::string;
|
||||
using init_type = std::pair<std::string, std::string>;
|
||||
using is_flat = std::false_type;
|
||||
|
||||
template <class allocator_type, class... Args>
|
||||
static void construct(allocator_type* alloc, slot_type* slot, Args... args) {
|
||||
@@ -598,6 +600,7 @@ struct DecomposePolicy {
|
||||
using slot_type = DecomposeType;
|
||||
using key_type = DecomposeType;
|
||||
using init_type = DecomposeType;
|
||||
using is_flat = std::false_type;
|
||||
|
||||
template <typename T>
|
||||
static void construct(void*, DecomposeType* slot, T&& v) {
|
||||
|
||||
Reference in New Issue
Block a user