From: Timo Heister Date: Tue, 17 Mar 2020 15:50:33 +0000 (-0400) Subject: use templated version X-Git-Tag: v9.2.0-rc1~413^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9671%2Fhead;p=dealii.git use templated version --- diff --git a/tests/tests.h b/tests/tests.h index fb5daf57d1..172cf9ed0a 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -757,43 +757,13 @@ struct SetGrainSizes DEAL_II_NAMESPACE_CLOSE -/* - * Do not use a template here to work around an overload resolution issue with - * clang and enabled C++11 mode. - * - * - Maier 2013 - */ +template LogStream & -operator<<(LogStream &out, const std::vector &v) +operator<<(LogStream &out, const std::vector &v) { for (std::size_t i = 0; i < v.size(); ++i) out << v[i] << (i == v.size() - 1 ? "" : " "); return out; } -LogStream & -operator<<(LogStream &out, const std::vector &v) -{ - for (std::size_t i = 0; i < v.size(); ++i) - out << v[i] << (i == v.size() - 1 ? "" : " "); - return out; -} - -LogStream & -operator<<(LogStream &out, const std::vector &v) -{ - for (std::size_t i = 0; i < v.size(); ++i) - out << v[i] << (i == v.size() - 1 ? "" : " "); - return out; -} - -LogStream & -operator<<(LogStream &out, const std::vector &v) -{ - for (std::size_t i = 0; i < v.size(); ++i) - out << v[i] << (i == v.size() - 1 ? "" : " "); - return out; -} - - #endif // dealii_tests_h