From 7aa8fd3b731abed8d82c9a3ae305722a07aa9498 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 4 Sep 2015 00:43:46 -0500 Subject: [PATCH] Bugfix: Remove superfluous operator<< and fix ambiguity --- include/deal.II/base/tensor.h | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index a338636851..a2a3ba0f8a 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -41,26 +41,12 @@ template inline std::ostream &operator << (std::ostream &out, const Tensor &p) { - for (unsigned int i=0; i -inline -std::ostream &operator << (std::ostream &out, const Tensor &p) -{ - out << p[0]; + for (unsigned int i = 0; i < dim; ++i) + { + out << p[i]; + if (i != dim - 1) + out << ' '; + } return out; } -- 2.39.5