typed data segment: fix vector handler for custom allocators

This commit is contained in:
Jake Hillion 2023-07-04 08:55:17 -07:00 committed by Jake Hillion
parent b574eb7566
commit 608880e156
2 changed files with 6 additions and 6 deletions

View File

@ -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:
@ -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

View File

@ -36,8 +36,8 @@ 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<
@ -45,8 +45,8 @@ struct TypeHandler<DB, %1% <T0>> {
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());