]> https://gitweb.dealii.org/ - dealii.git/commitdiff
use templated version 9671/head
authorTimo Heister <timo.heister@gmail.com>
Tue, 17 Mar 2020 15:50:33 +0000 (11:50 -0400)
committerTimo Heister <timo.heister@gmail.com>
Tue, 17 Mar 2020 15:50:33 +0000 (11:50 -0400)
tests/tests.h

index fb5daf57d12702a52692b5897a95acc6edc74590..172cf9ed0a1624da9faad1741a4c2799d3eaca2f 100644 (file)
@@ -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 <class T>
 LogStream &
-operator<<(LogStream &out, const std::vector<unsigned int> &v)
+operator<<(LogStream &out, const std::vector<T> &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<std::uint64_t> &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<unsigned long long> &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<double> &v)
-{
-  for (std::size_t i = 0; i < v.size(); ++i)
-    out << v[i] << (i == v.size() - 1 ? "" : " ");
-  return out;
-}
-
-
 #endif // dealii_tests_h

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.