From c4345c809e169e17ceabccc3e11ea6e7916415d7 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Wed, 22 Dec 2021 14:55:28 -0800 Subject: [PATCH] Add `ostream` support for `key` type used in transparent tests --- test/unordered/transparent_tests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/unordered/transparent_tests.cpp b/test/unordered/transparent_tests.cpp index 6656e95f..06b2f7a1 100644 --- a/test/unordered/transparent_tests.cpp +++ b/test/unordered/transparent_tests.cpp @@ -24,6 +24,12 @@ struct key int key::count_; +std::ostream& operator<<(std::ostream& os, key const& k) +{ + os << "key { x_: " << k.x_ << " }"; + return os; +} + struct transparent_hasher { typedef void is_transparent;