From 6a8eb0c9c8d3f71ed4e718464c6d22ca0ffbbdd8 Mon Sep 17 00:00:00 2001 From: Rob Hughes Date: Tue, 28 Nov 2017 10:31:21 +0000 Subject: IVGCVSW-1075 Fix Android build ARM_COMPUTE_LOG_STREAM macro Change-Id: Idc0809ff84c4d33c022f9b5d420d05fb7f65abc7 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/122570 Reviewed-by: Georgios Pinitas Reviewed-by: Anthony Barbier Tested-by: Jenkins --- arm_compute/core/utils/logging/Macros.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'arm_compute/core/utils/logging') diff --git a/arm_compute/core/utils/logging/Macros.h b/arm_compute/core/utils/logging/Macros.h index bc121e25eb..5593030261 100644 --- a/arm_compute/core/utils/logging/Macros.h +++ b/arm_compute/core/utils/logging/Macros.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -50,14 +50,16 @@ } \ } while(false) -#define ARM_COMPUTE_LOG_STREAM(logger_name, log_level, stream) \ - do \ - { \ - auto __logger = arm_compute::logging::LoggerRegistry::get().logger(logger_name); \ - if(__logger != nullptr) \ - { \ - __logger->log(log_level, static_cast(std::ostringstream() << stream).str()); \ - } \ +#define ARM_COMPUTE_LOG_STREAM(logger_name, log_level, stream) \ + do \ + { \ + auto __logger = arm_compute::logging::LoggerRegistry::get().logger(logger_name); \ + if(__logger != nullptr) \ + { \ + std::ostringstream s; \ + s << stream; \ + __logger->log(log_level, s.str()); \ + } \ } while(false) #else /* ARM_COMPUTE_LOGGING_ENABLED */ -- cgit v1.2.1