Re: [eigen] patch (enums)

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Benoît Jacob schrieb:
> Hi List,
> 
> please find attached the patch for removing the "static const int" everywhere. 
> Instead, using enums in classes and #defines for the global constants (just 
> to test performance).
> 
> [...]
> 
> Even if we move to enums I think I will revert the global constants to 
> be "const int" instead of defines, as that is really cleaner.

We are using C++ here, so please avoid all #define (as far as possible...)

E.g. a #define usually prevents the IDE from showing the correct values.
And even more important in the few of hardcore C++ programmers: it
allows the compiler to do type checking

CU,
Christian


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHhnT3oWM1JLkHou0RCBDHAJ4gLD9EAA5r9VyWFVsn1EzFaeGCpQCfQRY6
X4I577+ttxF5rS3NJO0P+uE=
=G0ga
-----END PGP SIGNATURE-----



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