Fix reading MLD data into shared memory block

This commit is contained in:
Michael Krasnyk
2017-03-07 19:19:54 +01:00
committed by Patrick Niklaus
parent e423aa5511
commit 264cec12e9
3 changed files with 34 additions and 14 deletions
@@ -1108,7 +1108,7 @@ class ContiguousInternalMemoryAlgorithmDataFacade<algorithm::MLD>
auto level_data =
*data_layout.GetBlockPtr<partition::MultiLevelPartitionView::LevelData>(
memory_block, storage::DataLayout::MLD_PARTITION);
memory_block, storage::DataLayout::MLD_LEVEL_DATA);
auto mld_partition_ptr = data_layout.GetBlockPtr<partition::PartitionID>(
memory_block, storage::DataLayout::MLD_PARTITION);
+1
View File
@@ -82,6 +82,7 @@ class FileReader
template <typename T> void ReadInto(T *dest, const std::size_t count)
{
#if not defined __GNUC__ or __GNUC__ > 4
static_assert(!std::is_pointer<T>::value, "saving pointer types is not allowed");
static_assert(std::is_trivially_copyable<T>::value,
"bytewise reading requires trivially copyable type");
#endif