mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
* Eigen compiles with any GCC versions from, at least, 3.3 without the previous ugly hack :)
* Renamed the scalar functors with the "Scalar" prefix (instead of "Cwise")
This commit is contained in:
11
Eigen/Core
11
Eigen/Core
@@ -4,14 +4,6 @@
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
|
||||
#if ((defined __GNUC__) && ( (__GNUC__==3) || (__GNUC__==4) && __GNUC_MINOR__==0))
|
||||
/* This very ugly hack to fix a bug of gcc <4.1 with the Curiously recurring template pattern and friend class.
|
||||
Note that gcc-4.0.1 is still the default compiler on MACOSX Leopard.
|
||||
*/
|
||||
#define private public
|
||||
#warning "Your compiler (gcc<4.1) has issue with friend and CRT, all private members of Eigen's classes are made public"
|
||||
#endif
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
#include "src/Core/Util.h"
|
||||
@@ -50,6 +42,3 @@ namespace Eigen {
|
||||
|
||||
} // namespace Eigen
|
||||
|
||||
#if ((defined __GNUC__) && (__GNUC_MINOR__==0))
|
||||
#undef private
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user