diff options
Diffstat (limited to 'arm_compute/core/utils/logging/Helpers.h')
-rw-r--r-- | arm_compute/core/utils/logging/Helpers.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arm_compute/core/utils/logging/Helpers.h b/arm_compute/core/utils/logging/Helpers.h index 341f944ddc..c3c2f0f0b8 100644 --- a/arm_compute/core/utils/logging/Helpers.h +++ b/arm_compute/core/utils/logging/Helpers.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020 ARM Limited. + * Copyright (c) 2017-2020 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -25,7 +25,7 @@ #define ARM_COMPUTE_LOGGING_HELPERS_H #include "arm_compute/core/utils/logging/Types.h" -#include "support/MemorySupport.h" + #include "support/ToolchainSupport.h" #include <cstddef> @@ -46,10 +46,10 @@ namespace logging * @return The formatted string */ template <typename... Ts> -inline std::string string_with_format(const std::string &fmt, Ts &&... args) +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<char[]>(size); + auto char_str = std::make_unique<char[]>(size); support::cpp11::snprintf(char_str.get(), size, fmt.c_str(), args...); return std::string(char_str.get(), char_str.get() + size - 1); } |