Re: [eigen] Alignment of a derived class

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


Hi,

> I have another question:
>
> I saw that you define
>    typedef void eigen_aligned_operator_new_marker_type;
> in the macro
>    EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF
> in Memory.h
>
> Do you have a structure in Eigen that checks if the typedef is defined, similar to the second example here:
> http://en.wikipedia.org/wiki/SFINAE

no, and actually I'm not sure eigen_aligned_operator_new_marker_type
is still needed.

> If Eigen provides this I would not have to define it myself.
>
> Basically what I want to do is to use boost::conditional to check if I have to use the aligned allocator for a vector.

Boost offers what you need to test if
eigen_aligned_operator_new_marker_type is present. I don't remember in
which package though.

gael

>
> thank you,
> Martin
>
>
>
>



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