msvc fixes

This commit is contained in:
Michael Krasnyk 2018-03-26 22:08:39 +02:00
parent 0c48f5fe2f
commit e572d6c340
No known key found for this signature in database
GPG Key ID: 49C12AD0F43D2108
2 changed files with 11 additions and 3 deletions

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>;

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)));
}
}