Don't rely on c++11 extension when we don't have to.

This commit is contained in:
Benoit Steiner 2016-05-17 07:21:22 -07:00
parent 2d74ef9682
commit 92fc6add43

View File

@ -16,8 +16,8 @@ using Eigen::RowMajor;
static void test_1d() static void test_1d()
{ {
Tensor<float, 1> vec1({6}); Tensor<float, 1> vec1(6);
Tensor<float, 1, RowMajor> vec2({6}); Tensor<float, 1, RowMajor> vec2(6);
vec1(0) = 4.0; vec2(0) = 0.0; vec1(0) = 4.0; vec2(0) = 0.0;
vec1(1) = 8.0; vec2(1) = 1.0; vec1(1) = 8.0; vec2(1) = 1.0;