aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-08-01 23:35:34 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-08-01 23:35:34 +0200
commit62169419aba9048c6c66c71ce4910241e594cbe1 (patch)
tree0c420719f4664018d4c35df8a780ab406edb2a86 /Eigen/src/Core/util
parent93b9e36e10a813cd92ffd397ffb0c1fcf60ca158 (diff)
Fix two regressions introduced in previous merges: bad usage of EIGEN_HAS_VARIADIC_TEMPLATES and linking issue.
Diffstat (limited to 'Eigen/src/Core/util')
-rw-r--r--Eigen/src/Core/util/Macros.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h
index f59b93608..0f3b428c9 100644
--- a/Eigen/src/Core/util/Macros.h
+++ b/Eigen/src/Core/util/Macros.h
@@ -1076,11 +1076,13 @@ namespace Eigen {
# endif
#endif
-#ifdef EIGEN_HAS_VARIADIC_TEMPLATES
+#if EIGEN_HAS_VARIADIC_TEMPLATES
// The all function is used to enable a variadic version of eigen_assert which can take a parameter pack as its input.
namespace Eigen {
namespace internal {
-bool all(){ return true; }
+
+inline bool all(){ return true; }
+
template<typename T, typename ...Ts>
bool all(T t, Ts ... ts){ return t && all(ts...); }