I feel your pain. Just had to do this a week ago. And I couldn't use _aligned_malloc family because they're MSVC specific, and I wanted CRT-independent code (so WinAPI or malloc).
Generally the vast majority of allocators do not support the custom alignment, which is sad.
I feel your pain. Just had to do this a week ago. And I couldn't use _aligned_malloc family because they're MSVC specific, and I wanted CRT-independent code (so WinAPI or malloc).
ReplyDeleteGenerally the vast majority of allocators do not support the custom alignment, which is sad.