Hi
This align confused me:
|
auto align(char* buf_start) -> char* { |
I thought that when you do placement new, you should automatically get the aligned address.
And also that aligned_storage should have sufficient size to store anything of that size or less.
Is this to support custom aligned types and arbitrary buffer sizes?
What are you trying to achieve?
Why do you use RTTI instead of strategy pattern?
|
return x && y && (std::type_index(typeid(*x)) == std::type_index(typeid(*y))); |
Hi
This align confused me:
liberasure/include/erasure/small_buffer.hpp
Line 50 in a0ff84d
I thought that when you do placement new, you should automatically get the aligned address.
And also that aligned_storage should have sufficient size to store anything of that size or less.
Is this to support custom aligned types and arbitrary buffer sizes?
What are you trying to achieve?
Why do you use RTTI instead of strategy pattern?
liberasure/include/erasure/erasure.hpp
Line 266 in a0ff84d