I finally ran into the annoying issue described here: https://eigen.tuxfamily.org/dox/group__TopicStlContainers.html
I have a structure containing several Eigen fixed-size matrices, and i want to store several instances of my structure in a std::vector. So obviously 'These issues arise only with fixed-size vectorizable Eigen types and structures having such Eigen objects as member.' applies. However, it is only described how to solve the issue with vectors directly collecting Eigen Objects, not with structures containing Eigen instances.
Currently my problem looks like this:
struct MyStruct{
EIGEN_MAKE_ALIGNED_OPERATOR_NEW //Don't know if this applies here
Eigen::Matrix<double, 4, 4> A;
// several more instances and stuff here
MyStruct ( ...) // constructor taking several arguments, but only running an initilization list for some members
// no destructor defined / implemented !
// no methods!
}
//
MyStruct instanceStruct( .. constructing .. );
instanceStruct.A = someAssigment() ;
// this type of 'instancing' before i push it into the vector is necessary ...
std::vector<MyStruct> myVector;
myVector.push_back( std::move( instanceStruct ) ); // gdb tells me that here we run into a SIGSEGV
What causes the problem? Thank you!