Use allocators
Opened this issue · 0 comments
chocolacula commented
Most of operations in reflection code should be type agnostic. This is the reason why classes like Box
or Sequence
don't have a type parameter. We really don't know what the type is within Box
and this is the reason why we have some problem with allocators.
see
Perhaps we can write some adaptor for allocators and use something like std::allocator<uint8_t>
and cast pointers for objects.