msvc fixes

This commit is contained in:
Michael Krasnyk
2018-03-26 22:08:39 +02:00
parent 0c48f5fe2f
commit e572d6c340
2 changed files with 11 additions and 3 deletions
+8 -2
View File
@@ -14,8 +14,14 @@ namespace storage
struct Block
{
std::uint64_t num_entries = 0;
std::uint64_t byte_size = 0;
std::uint64_t num_entries;
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>;
+3 -1
View File
@@ -322,7 +322,9 @@ template <typename GroupBlockPolicy, storage::Ownership Ownership> struct Indexe
auto to_bytes = [&](const auto &data) {
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)));
}
}