msvc fixes
This commit is contained in:
parent
0c48f5fe2f
commit
e572d6c340
@ -14,8 +14,14 @@ namespace storage
|
|||||||
|
|
||||||
struct Block
|
struct Block
|
||||||
{
|
{
|
||||||
std::uint64_t num_entries = 0;
|
std::uint64_t num_entries;
|
||||||
std::uint64_t byte_size = 0;
|
std::uint64_t byte_size;
|
||||||
|
|
||||||
|
Block() : num_entries(0), byte_size(0) {}
|
||||||
|
Block(std::uint64_t num_entries, std::uint64_t byte_size)
|
||||||
|
: num_entries(num_entries), byte_size(byte_size)
|
||||||
|
{
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
using NamedBlock = std::tuple<std::string, Block>;
|
using NamedBlock = std::tuple<std::string, Block>;
|
||||||
|
@ -322,7 +322,9 @@ template <typename GroupBlockPolicy, storage::Ownership Ownership> struct Indexe
|
|||||||
auto to_bytes = [&](const auto &data) {
|
auto to_bytes = [&](const auto &data) {
|
||||||
values_byte_iter = std::copy_n(&data, sizeof(ValueType), values_byte_iter);
|
values_byte_iter = std::copy_n(&data, sizeof(ValueType), values_byte_iter);
|
||||||
};
|
};
|
||||||
std::copy(data + *curr, data + *next, boost::make_function_output_iterator(to_bytes));
|
std::copy(data + *curr,
|
||||||
|
data + *next,
|
||||||
|
boost::make_function_output_iterator(std::cref(to_bytes)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user