From: Matthias Maier Date: Fri, 4 Sep 2015 05:43:46 +0000 (-0500) Subject: Bugfix: Remove superfluous operator<< and fix ambiguity X-Git-Tag: v8.4.0-rc2~466^2~18 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7aa8fd3b731abed8d82c9a3ae305722a07aa9498;p=dealii.git Bugfix: Remove superfluous operator<< and fix ambiguity --- 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; }