]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add overload for logstream's << for uint64_t 9599/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 3 Mar 2020 08:49:53 +0000 (09:49 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 3 Mar 2020 08:49:58 +0000 (09:49 +0100)
tests/tests.h

index 749f462425eef0dee660f27b50d4c8287169109b..08a124f546b5fff936c342b0421eb0398867e4bb 100644 (file)
@@ -766,15 +766,15 @@ DEAL_II_NAMESPACE_CLOSE
 LogStream &
 operator<<(LogStream &out, const std::vector<unsigned int> &v)
 {
-  for (unsigned int i = 0; i < v.size(); ++i)
+  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<long long unsigned int> &v)
+operator<<(LogStream &out, const std::vector<std::uint64_t> &v)
 {
-  for (unsigned int i = 0; i < v.size(); ++i)
+  for (std::size_t i = 0; i < v.size(); ++i)
     out << v[i] << (i == v.size() - 1 ? "" : " ");
   return out;
 }
@@ -782,7 +782,7 @@ operator<<(LogStream &out, const std::vector<long long unsigned int> &v)
 LogStream &
 operator<<(LogStream &out, const std::vector<double> &v)
 {
-  for (unsigned int i = 0; i < v.size(); ++i)
+  for (std::size_t i = 0; i < v.size(); ++i)
     out << v[i] << (i == v.size() - 1 ? "" : " ");
   return out;
 }

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.