From f65e0b85a8855fc0e88488ec03315e1581784fa8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 22 Aug 2023 09:48:17 -0600 Subject: [PATCH] libpbd: add operator<< for PropertyChange --- libs/pbd/pbd/property_basics.h | 4 ++++ libs/pbd/property_list.cc | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/libs/pbd/pbd/property_basics.h b/libs/pbd/pbd/property_basics.h index e74f126b7d..3ca45e946e 100644 --- a/libs/pbd/pbd/property_basics.h +++ b/libs/pbd/pbd/property_basics.h @@ -173,4 +173,8 @@ private: } +namespace std { +ostream& operator<< (std::ostream& os, PBD::PropertyChange const & pc); +} + #endif /* __libpbd_property_basics_h__ */ diff --git a/libs/pbd/property_list.cc b/libs/pbd/property_list.cc index 6f5ad923f8..c614d155ac 100644 --- a/libs/pbd/property_list.cc +++ b/libs/pbd/property_list.cc @@ -89,3 +89,9 @@ OwnedPropertyList::add (PropertyBase& p) } +std::ostream& +std::operator<< (std::ostream& os, PropertyChange const & pc) +{ + pc.dump (os); + return os; +}