]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Workaround an issue with clang and enabled C++11 mode
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 14 Oct 2013 13:51:52 +0000 (13:51 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 14 Oct 2013 13:51:52 +0000 (13:51 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31228 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/coarse_grid_common.h

index 9c915f0c275b258fa978fbe90643b5c04bed0a36..a7537f052f72eed65d4546570eff0f4544011045 100644 (file)
@@ -99,21 +99,24 @@ void assert_tria_equal(const Triangulation<dim> &a, const Triangulation<dim> &b)
 }
 
 
-template <typename T>
+/*
+ * Do not use a template here to work around an overload resolution issue with clang and
+ * enabled  C++11 mode.
+ *
+ * - Maier 2013
+ */
 LogStream &
 operator << (LogStream &out,
-             const std::vector<T> &v)
+             const std::vector<unsigned int> &v)
 {
   for (unsigned int i=0; i<v.size(); ++i)
     out << v[i] << (i == v.size()-1 ? "" : " ");
   return out;
 }
 
-
-template <typename T>
-std::ostringstream &
-operator << (std::ostringstream &out,
-             const std::vector<T> &v)
+LogStream &
+operator << (LogStream &out,
+             const std::vector<double> &v)
 {
   for (unsigned int i=0; i<v.size(); ++i)
     out << v[i] << (i == v.size()-1 ? "" : " ");

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.