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 <[email protected]> wrote:
> 
> Hi,
> 
> yes that's, sadly, true.
> 
> Gaël
> 
> On Wed, May 3, 2023 at 12:26 PM Rasmus <[email protected] 
> <mailto:[email protected]>> wrote:
> Hello,
> I would like to get an authoritative answer to this question here: 
> https://stackoverflow.com/questions/63216172/transitive-effect-of-eigen-eigen-make-aligned-operator-new
>  
> <https://stackoverflow.com/questions/63216172/transitive-effect-of-eigen-eigen-make-aligned-operator-new>
> 
> 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

Reply via email to