I have read the man of aliged_alloc and I should use it like:
void* aligned_alloc( std::size_t alignment, std::size_t size );
It returns the pointer I want to alloc with the alignment and the size.
In my code I try to use it:
int *a = aligned_alloc(1024, 10*sizeof(a));
And with
std::cout << alignof(a) << std::endl;
it gives me 8. But I expect that the results is 1024 because my alignement is 1024.
What don't I understand?