Re: [eigen] transitivity of EIGEN_MAKE_ALIGNED_OPERATOR_NEW

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Thank you for clarifying.
Is there any advice for how to deal with this when using e.g. `std::make_pair` and `std::map`? The map class is templated with an allocator type for `std::pair<key, value>`. Would an `Eigen::aligned_allocator<pair<key, value>>` do anything here? I am assuming no, since the type `pair<key, value>` does not include the EIGEN_MAKE_ALIGNED_OPERATOR macro.

Best,
Rasmus

On 3. May 2023, at 15:09, Gael Guennebaud <gael.guennebaud@xxxxxxxxx> wrote:

Hi,

yes that's, sadly, true.

Gaël

On Wed, May 3, 2023 at 12:26 PM Rasmus <rasmusdiederichsen@xxxxxxxxx> wrote:
Hello,

Basically, if class A has Eigen members and thus uses EIGEN_MAKE_ALIGNED_OPERATOR, should this macro also be added to class B which has a member of type A?

Best,
Rasmus



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