boost-ext / te

C++17 Run-time Polymorphism (Type Erasure) library
463 stars 39 forks source link

Question on void_ptr #22

Open SebastienParis opened 5 years ago

SebastienParis commented 5 years ago

Hi there, i am interested in knowing more about your design choices. Why do you store the deleter and cloner functions in the void_ptr instead of the vtable? This seems to be an unnecessary additional 2 pointers per poly value... I would be reallly interested in understanding what I potentially miss if you have some time to answer 😉 Cheers!