aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/cxx11_tensor_expr.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-03-03 08:56:49 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-03-03 08:56:49 -0800
commit5d2fd64a1a060a388e6681c3556bb4dc9482943e (patch)
tree67c39de093ced7f6582f69e91072ac213a0bf529 /unsupported/test/cxx11_tensor_expr.cpp
parentf64b4480afba333dca8ed628bd73f9a1cddf3dd1 (diff)
Fixed compilation error when compiling with gcc4.7
Diffstat (limited to 'unsupported/test/cxx11_tensor_expr.cpp')
-rw-r--r--unsupported/test/cxx11_tensor_expr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/test/cxx11_tensor_expr.cpp b/unsupported/test/cxx11_tensor_expr.cpp
index 695565e9b..8389e9840 100644
--- a/unsupported/test/cxx11_tensor_expr.cpp
+++ b/unsupported/test/cxx11_tensor_expr.cpp
@@ -260,7 +260,7 @@ static void test_type_casting()
mat1.setRandom();
mat2.setRandom();
- mat3 = mat1.template cast<double>();
+ mat3 = mat1.cast<double>();
for (int i = 0; i < 2; ++i) {
for (int j = 0; j < 3; ++j) {
for (int k = 0; k < 7; ++k) {
@@ -269,7 +269,7 @@ static void test_type_casting()
}
}
- mat3 = mat2.template cast<double>();
+ mat3 = mat2.cast<double>();
for (int i = 0; i < 2; ++i) {
for (int j = 0; j < 3; ++j) {
for (int k = 0; k < 7; ++k) {