From 40f51a63c8e7258db15269427ae4fe1ad199c550 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Sat, 21 Nov 2020 03:04:18 +0000 Subject: Update default C++ standard to C++14 (3RDPARTY_UPDATE) Resolves: COMPMID-3849 Signed-off-by: Georgios Pinitas Change-Id: I6369f112337310140e2d6c8e79630cd11138dfa0 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4544 Tested-by: Arm Jenkins Reviewed-by: Michalis Spyrou Comments-Addressed: Arm Jenkins --- arm_compute/core/utils/logging/Helpers.h | 3 +-- arm_compute/core/utils/logging/Macros.h | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'arm_compute/core/utils') diff --git a/arm_compute/core/utils/logging/Helpers.h b/arm_compute/core/utils/logging/Helpers.h index 08b8eb354a..5f8b948592 100644 --- a/arm_compute/core/utils/logging/Helpers.h +++ b/arm_compute/core/utils/logging/Helpers.h @@ -25,7 +25,6 @@ #define ARM_COMPUTE_LOGGING_HELPERS_H #include "arm_compute/core/utils/logging/Types.h" -#include "support/MemorySupport.h" #include "support/ToolchainSupport.h" #include @@ -49,7 +48,7 @@ template inline std::string string_with_format(const std::string &fmt, Ts &&... args) { size_t size = support::cpp11::snprintf(nullptr, 0, fmt.c_str(), args...) + 1; - auto char_str = support::cpp14::make_unique(size); + auto char_str = std::make_unique(size); support::cpp11::snprintf(char_str.get(), size, fmt.c_str(), args...); return std::string(char_str.get(), char_str.get() + size - 1); } diff --git a/arm_compute/core/utils/logging/Macros.h b/arm_compute/core/utils/logging/Macros.h index 6a1b7611ec..21ed721eb1 100644 --- a/arm_compute/core/utils/logging/Macros.h +++ b/arm_compute/core/utils/logging/Macros.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 Arm Limited. + * Copyright (c) 2017-2020 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -47,7 +47,7 @@ if(__logger != nullptr) \ { \ size_t size = ::snprintf(nullptr, 0, fmt, __VA_ARGS__) + 1; \ - auto char_str = support::cpp14::make_unique(size); \ + auto char_str = std::make_unique(size); \ ::snprintf(char_str.get(), size, #fmt, __VA_ARGS__); \ __logger->log(log_level, std::string(char_str.get(), char_str.get() + size - 1)); \ } \ -- cgit v1.2.1