Why C++ allocators use reinterpret_cast and how to avoid it?
I was trying to implement my own small allocator for testing purposes and while designing it I thought that I don’t know how to implement it without violating strict aliasing rule.
I was trying to implement my own small allocator for testing purposes and while designing it I thought that I don’t know how to implement it without violating strict aliasing rule.