Skip to content

Commit

Permalink
typed data segment: fix vector handler for custom allocators
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeHillion committed Jul 5, 2023
1 parent b1e98dd commit 8f77da9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ workflows:
- build-gcc
oid_test_args: "-ftyped-data-segment"
tests_regex: "OidIntegration\\..*"
exclude_regex: ".*inheritance_polymorphic.*|.*std_vector_del_allocator_a|.*cycles_.*"
exclude_regex: ".*inheritance_polymorphic.*|.*cycles_.*"
- coverage:
name: coverage
requires:
Expand All @@ -37,7 +37,7 @@ workflows:
requires:
- test-type-graph-gcc
- coverage:
name: coverage-typed-data-sgement
name: coverage-typed-data-segment
requires:
- test-typed-data-segment-gcc

Expand Down
8 changes: 4 additions & 4 deletions types/seq_type.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ void getSizeType(const %1%<T, Allocator> &container, size_t& returnArg)
"""

handler = """
template <typename DB, typename T0>
struct TypeHandler<DB, %1% <T0>> {
template <typename DB, typename T0, typename T1>
struct TypeHandler<DB, %1%<T0, T1>> {
using type = types::st::Pair<
DB, types::st::VarInt<DB>,
types::st::Pair<
DB, types::st::VarInt<DB>,
types::st::List<DB, typename TypeHandler<DB, T0>::type>>>;
static types::st::Unit<DB> getSizeType(
const %1% <T0> & container,
typename TypeHandler<DB, %1% <T0>>::type returnArg) {
const %1%<T0, T1> & container,
typename TypeHandler<DB, %1%<T0, T1>>::type returnArg) {
auto tail = returnArg.write((uintptr_t)&container)
.write(container.capacity())
.write(container.size());
Expand Down

0 comments on commit 8f77da9

Please sign in to comment.