From: Martin Kronbichler Date: Tue, 3 Mar 2020 08:49:53 +0000 (+0100) Subject: Add overload for logstream's << for uint64_t X-Git-Tag: v9.2.0-rc1~475^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=871a4e739992f81ee66df15dcf95f486aab96d99;p=dealii.git Add overload for logstream's << for uint64_t --- diff --git a/tests/tests.h b/tests/tests.h index 749f462425..08a124f546 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -766,15 +766,15 @@ DEAL_II_NAMESPACE_CLOSE LogStream & operator<<(LogStream &out, const std::vector &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 &v) +operator<<(LogStream &out, const std::vector &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 &v) LogStream & operator<<(LogStream &out, const std::vector &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; }