Re: [eigen] question on alignment |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] question on alignment
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Wed, 10 Oct 2012 22:12:00 +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=a+FzuwcCM0RplIpua+/VtfZA65pomLr1sNGDxiomRnA=; b=ZH9+JmypTaXJ1CKnb+0VtX1eMl79sgzrep+3DHUXd2uACkie+PUQ2AAIT26uGqdaeR Qx5080YRt+RCVpdPsLdTzbXLLK5ZY7wr9LHO7WM8vR4eYT5/oHhQQKFjYJx4NkB3CCod 6kmXvtx1K6DTwwhGekQLBFtHAuui6P6QXyWw6MlPT5WFwOyB/1sv7QTP5If21Yk1hlkv lVVQz/Z1Qt0uoijXgDpBrRKJ9IVGYgvjkEjk5ofeijdgn+Gf2AfdISby/REGp03kasAy OQonFbCKAm03IH5x/aDcMTyK9K5ZOXw5NTYNVEwOITNSV7FXKy4v4BZWpLKrSPVYPusm RDOQ==
operator new is inherited automatically, so in the following case no
need to put the macro in the class A:
class Foo
{
Eigen::Vector2d v;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW2
};
class A : public Foo
{
Eigen::Vector2d w;
};
that's the only exception.
gael
On Wed, Oct 10, 2012 at 9:51 PM, Sylvain Pointeau
<sylvain.pointeau@xxxxxxxxx> wrote:
> On Wed, Oct 10, 2012 at 9:29 PM, Gael Guennebaud
> <gael.guennebaud@xxxxxxxxx> wrote:
>> only in the base classes.
>
> no see the answers before, it is necessary to keep the alignment
>
>