From 7486249c1eb37c60cf5c3243bd4c16f4be0b8276 Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Thu, 13 Jun 2019 14:42:03 +0200 Subject: [PATCH] Declare operator<< for boost::any in boost namespace --- fairmq/PropertyOutput.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fairmq/PropertyOutput.h b/fairmq/PropertyOutput.h index 62fbbac5..ce23eaa4 100644 --- a/fairmq/PropertyOutput.h +++ b/fairmq/PropertyOutput.h @@ -12,9 +12,14 @@ #include -inline std::ostream& operator<<(std::ostream& os, const fair::mq::Property& p) +namespace boost +{ + +inline std::ostream& operator<<(std::ostream& os, const boost::any& p) { return os << fair::mq::PropertyHelper::GetPropertyInfo(p).first; } +} + #endif /* FAIR_MQ_PROPERTYOUT_H */