mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-12 21:56:54 +00:00
typed data segment: fix vector handler for custom allocators
This commit is contained in:
parent
b574eb7566
commit
608880e156
@ -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
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user