Re: [eigen] Eigen Needs Forward Declaration Files

[ Thread Index | Date Index | More Archives ]

On 1/9/2016 6:08 AM, Marc Glisse wrote:
On Sat, 9 Jan 2016, Brad Bell wrote:

The standard library file
   # include <iosfwd>
is a forward declarations file for the objects defined in <iostream>.

I have a need of such a file for the object
   class Eigen::SimplicialLDLT;
Here is my reason.

Compiling with eigen and g++ requires one to suppress certain warnings as follows:
    -Wno-shadow -Wno-deprecated-declarations

Why not advertise the directory with Eigen sources using -isystem instead of -I? That's how many projects handle warnings in external dependencies.

I was able to do this in a compiler independent way with the CMake SYSTEM option to the INCLUDE_DIRECTORIES command. I Think that this satisfies my needs for a forward declaration.


Mail converted by MHonArc 2.6.19+