From 32124bc64ace50f40c7e2f79b39dd14e284fb9a3 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 27 Jan 2011 17:36:58 +0100 Subject: [PATCH] EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET must be defined to use Eigen/Sparse --- Eigen/Sparse | 4 ++++ test/sparse.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Eigen/Sparse b/Eigen/Sparse index ce6ef2f3c..bdc45610d 100644 --- a/Eigen/Sparse +++ b/Eigen/Sparse @@ -11,6 +11,10 @@ #include #include +#ifndef EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET +#error The sparse module API is not stable yet. To use it anyway, please define the EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET preprocessor token. +#endif + namespace Eigen { /** \defgroup Sparse_Module Sparse module diff --git a/test/sparse.h b/test/sparse.h index 1489f2a0e..b343427e5 100644 --- a/test/sparse.h +++ b/test/sparse.h @@ -24,6 +24,8 @@ #ifndef EIGEN_TESTSPARSE_H +#define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET + #include "main.h" #if EIGEN_GNUC_AT_LEAST(4,0) && !defined __ICC