blob: 14abe98ed1fb1cce27da6eb64a89a948e93b3e91 [file]
#include "../Eigen/Core"
// Reproduces the "Dynamic-sized Array breaks tuple_size" bug: the Array
// specialization had the same enable_if_t base-clause issue as Matrix. Compile
// must fail for ArrayXd.
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
#define ROWS Eigen::Dynamic
#define COLS Eigen::Dynamic
#else
#define ROWS 3
#define COLS 1
#endif
#include <tuple>
int main() {
(void)std::tuple_size<Eigen::Array<double, ROWS, COLS>>::value;
return 0; // Test should pass.
}