From db85d913df6da7d837fc6d2ea51ccd9e9bfc39b9 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 16 Mar 2020 18:01:41 -0400 Subject: [PATCH] Fix hdf5 tests std::vector is sent to deallog in several hdf5 tests (get_dimensions()). Re-add the operator overload. --- tests/tests.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/tests.h b/tests/tests.h index 08a124f546..fb5daf57d1 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -779,6 +779,14 @@ operator<<(LogStream &out, const std::vector &v) 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) { -- 2.39.5