Registered Member
|
From what I read the solution to using std::make_shared with eigen was to use std::allocate_shared and the aligned_allocator.
So that is exactly what I did but had no success. The code below showcases the issue.
I should say that this works fine
Am I missing something or this is something that has to be reported to MS ? Thanks in advance |
Moderator
|
I would recommend to not bother and use unaligned types as data member:
typedef Matrix<double,4,1,DontAlign> UVec4d; then you, your collaborators, lib's users etc. will be safe! Of course, you can still use aligned Vec4d everywhere else. |
Registered Member
|
Thanks ggael.
I think there is light at the end of the tunnel with C++17. It seems that operator new has been overleaded to support custom alignments that are set with alignas()
|
Moderator
|
indeed, in c++17 operator new will be aware of alignement Ironically, alignement is becoming less and less important with newer CPU generations...
|
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]