Re: [eigen] Alignment of a derived class |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Alignment of a derived class
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Fri, 20 Jul 2012 18:08:04 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=A7EPi7x664JR9YcLAITGAj5XCc2bNpj3rhpos5wmIEI=; b=BanvK4vPIlvNHTkMDCkKRYgLUhc1n11upxk2FPQwJd8L/qXrgzlglX2ffekUzPswVP /uzrjuV1MSAquc+3CN8xoBwWDMEjBEWxRwdr2EmH9evgR9XF0gBndistmeGmt+yKidR0 j68VGq122kHK8DjdmgHsdYqA1KRR0gL9DDnMyseE7uC6Dzsqj5WA/PvVQMEv1cq/VOPL vEXZEykbBC/Oe1uw4Bjvd/Vne+FIdMWCZqtKlIt59g5IrfuXda14PyZpwUDcf/wWqHfi /Xh7MgB1+ITsP7S9rvTqakeW7+ZsfaIa/pIpPd/Ax86nGIlEiRQURyCQcYvn/Ehm3xBD ZcSA==
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
>
>
>
>