chocolacula/easy_reflection_cpp

Use allocators

Opened this issue · 0 comments

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

void* (*call_new)(void*, size_t), //

Perhaps we can write some adaptor for allocators and use something like std::allocator<uint8_t> and cast pointers for objects.