[eigen] STL Vectors and Alignment
• To: eigen@xxxxxxxxxxxxxxxxxxx
• Subject: [eigen] STL Vectors and Alignment
• From: Gabriel <gnuetzi@xxxxxxxxx>
• Date: Wed, 26 Nov 2014 13:31:14 +0100
• Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=eW/VEigUhH+6XO6m9HDQjdq32QJhMy2mwTlu/HPgrV8=; b=Jy9qW1irtZPU2CMkOVXmwsN11St6dJRhwH8P31PwuFKtpe0sbVei6EfQn/5Y0xOA9d rHQuq4h5Remp4JYAooMdmB7+f6/dR3X4p/TobRtmxsMHQo+7GubAIkOuHQVPrz6J+DtP tHV3rd9PQu1JcbiULleIVZIZzMlo8Li46s2AdB22dQWDoIVGCrakFhi8nZ0nBANqMKck DPFnggvo5L2LjsAhMknSmA3YfV8/kmC5E6vVu/aaA4rR+6Ym6epNxtkJLKQrhFgmhr/8 PW0jlyWWFphP7o7NHNzZDaR4s/ObD+cFsZeV3T+luHWB/s+d/Dk1S3aj0xuyPr350Ag/ seig==

 Hello, Through the documentation which is awesomely cool :-) I could not figure out the following cases: First Case: struct A{     Eigen::Vector2d a; }; std::vector vec; THIS is obviously wrong because there are alignement issues, described on the page. Is it enough to fix it like this: struct A{     EIGEN_MAKE_ALIGNED_OPERATOR_NEW     Vector2d a; }; std::vector vec; Or is this going to fail alignment too and I need something like this: std::vector<  A  ,   Eigen::aligned_allocator<  A > > Second Case: struct B{     A a; }; struct A{     EIGEN_MAKE_ALIGNED_OPERATOR_NEW     Eigen::Vector2d a; }; std::vector vec; Or is this going to fail alignment too and I need something like this: std::vector< B  ,   Eigen::aligned_allocator<  B > > Thanks a lot for the quick reply =)! Gabriel

 Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/