Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Apr 27, 2024
1 parent 925da87 commit fe391fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/cista/containers/paged.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ struct paged {
using reference = typename DataVec::reference;
using const_reference = typename DataVec::const_reference;
using size_type = SizeType;
using page_size_type = PageSizeType;
using page_t = page<SizeType, PageSizeType>;

static_assert(sizeof(value_type) * MinPageSize >= sizeof(page_t));
Expand Down
3 changes: 2 additions & 1 deletion include/cista/containers/paged_vecvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ struct paged_vecvec {
typename = std::enable_if_t<std::is_convertible_v<
decltype(*std::declval<Container>().begin()), data_value_type>>>
void emplace_back(Container&& bucket) {
auto p = paged_.create_page(static_cast<size_type>(bucket.size()));
auto p = paged_.create_page(
static_cast<typename Paged::page_size_type>(bucket.size()));
paged_.copy(p, std::begin(bucket), std::end(bucket));
idx_.emplace_back(p);
}
Expand Down

0 comments on commit fe391fd

Please sign in to comment.