From 4a09cb169ce78bb850da06340842984b8862cba2 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 30 Mar 2021 14:10:28 -0700 Subject: [PATCH] include: add dump operator for Feature Signed-off-by: Patrick Donnelly (cherry picked from commit 5da02036eefe60c89e11f53d4bacb0e41e03e794) --- src/include/CompatSet.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/include/CompatSet.h b/src/include/CompatSet.h index 3202384900cb0..38ed85b319a1f 100644 --- a/src/include/CompatSet.h +++ b/src/include/CompatSet.h @@ -257,6 +257,11 @@ struct CompatSet { }; WRITE_CLASS_ENCODER(CompatSet) +inline std::ostream& operator<<(std::ostream& out, const CompatSet::Feature& f) +{ + return out << "F(" << f.id << ", \"" << f.name << "\")"; +} + inline std::ostream& operator<<(std::ostream& out, const CompatSet::FeatureSet& fs) { return out << fs.names; -- 2.39.5