Fix two regressions introduced in previous merges: bad usage of EIGEN_HAS_VARIADIC_TEMPLATES and linking issue.

This commit is contained in:
Gael Guennebaud 2018-08-01 23:35:34 +02:00
parent 93b9e36e10
commit 62169419ab

View File

@ -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...); }