diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-01-23 22:03:57 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-01-23 22:03:57 +0100 |
commit | b0db4eff367017f8b273b7d407b3fe0e86808ed2 (patch) | |
tree | a43965c13da72e2bfaa7746c2ad5689cb354849a /Eigen/Core | |
parent | ca79c1545aa728b756191f0cc3abd62fb7f867b8 (diff) |
bug #1382: move using std::size_t/ptrdiff_t to Eigen's namespace (still better than the global namespace!)
Diffstat (limited to 'Eigen/Core')
-rw-r--r-- | Eigen/Core | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Eigen/Core b/Eigen/Core index 1c709cad3..f85b22db7 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -337,12 +337,16 @@ inline static const char *SimdInstructionSetsInUse(void) { #error Eigen2-support is only available up to version 3.2. Please go to "http://eigen.tuxfamily.org/index.php?title=Eigen2" for further information #endif +namespace Eigen { + // we use size_t frequently and we'll never remember to prepend it with std:: everytime just to // ensure QNX/QCC support using std::size_t; // gcc 4.6.0 wants std:: for ptrdiff_t using std::ptrdiff_t; +} + /** \defgroup Core_Module Core module * This is the main module of Eigen providing dense matrix and vector support * (both fixed and dynamic size) with all the features corresponding to a BLAS library |