Hi Herve,
I was just reading up on the
Eigen docs under Cause 2,
The same issue will be exhibited by any classes/functions by-passing
operator new to allocate memory, that is, by performing custom memory
allocation followed by calls to the placement new operator. This is for
instance typically the case of std::make_shared
or std::allocate_shared
for which is the solution is to use an aligned allocator as detailed in the solution for STL containers. If you use the
Eigen::aligned_allocator does it resolve the assertion, (e.g. make_shared<MyStruct, Eigen::aligned_allocator<MyStruct>>)?
(You have my sympathies in struggling with alignment issues. :} )