Re: [eigen] Forward declarations |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Forward declarations
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Tue, 19 Jul 2011 09:21:59 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=S+/UthsgzPZaTXu69WH4rKjuCbQVspweAaWnYY/4KUM=; b=g2JOZ0vHAJncbwpX4ytT873l0h/HGy7agIde2eJyFU63rC7l8KqTFMwlpez9SW897U 58XrMSRj+smRWPNERXHE/U13R0/zY2O/HGO9EGztxa5NYTd5anfO2b+3q8X+ftMhgPgi uvO82hAwKbqaPddNQZmfj9cnVtX5wKhCRfv4g=
Hi,
that's not so easy because I see that OpenQube headers typically
contains functions returning Eigen::Vector3d objects by value or
classes having Eigen's objects as members. That means the compiler has
to know what is, e.g., a Eigen::Vector3d so I'm afraid simple forward
declarations won't help.
Gael
On Mon, Jul 18, 2011 at 4:09 PM, David Lonie <loniedavid@xxxxxxxxx> wrote:
> Hi List,
>
> I'm currently integrating a library that uses Eigen vectors/matrices
> in its API into VTK, and I have a quick question: Is it possible to
> forward-declare Eigen::Matrix? The library (OpenQube
> http://github.com/cryos/openqube) currently includes Eigen/Core in
> it's headers, but I'd like to replace these includes with forward
> declarations so that I wouldn't have to add Eigen as a dependency for
> VTK.
>
> I've tried doing this myself, but it looks like the last three
> template arguments are dependent on compiler options. Is there a trick
> to forward declaring this class?
>
> Thanks,
>
> Dave
>
>
>