From 0f3fcf73e3f1b976f423813c64ac9a8b12d709e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81kos=20Hadnagy?= Date: Sun, 24 Jul 2022 10:03:18 +0200 Subject: [PATCH] Inline print_value() in ostream exporter (#1512) --- .../include/opentelemetry/exporters/ostream/common_utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exporters/ostream/include/opentelemetry/exporters/ostream/common_utils.h b/exporters/ostream/include/opentelemetry/exporters/ostream/common_utils.h index cfebfe8fce..6712e6a9da 100644 --- a/exporters/ostream/include/opentelemetry/exporters/ostream/common_utils.h +++ b/exporters/ostream/include/opentelemetry/exporters/ostream/common_utils.h @@ -61,7 +61,8 @@ class OwnedAttributeValueVisitor #endif -void print_value(const opentelemetry::sdk::common::OwnedAttributeValue &value, std::ostream &sout) +inline void print_value(const opentelemetry::sdk::common::OwnedAttributeValue &value, + std::ostream &sout) { #if __cplusplus < 201402L opentelemetry::nostd::visit(OwnedAttributeValueVisitor(sout), value);