From 085f0a42623401f78bd1df34cdcebe8555809410 Mon Sep 17 00:00:00 2001 From: arovir01 Date: Mon, 8 Oct 2018 14:48:19 +0100 Subject: IVGCVSW-1985: Replace std::string* reasonIfNotSupported with Optional in IsLayerSupported implementations Change-Id: I2f054f0dcff9bdc86ee90c55b3e94c6b4ae25085 --- src/armnn/LayerSupport.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/armnn/LayerSupport.cpp') diff --git a/src/armnn/LayerSupport.cpp b/src/armnn/LayerSupport.cpp index 3758ed40f6..8bad89f070 100644 --- a/src/armnn/LayerSupport.cpp +++ b/src/armnn/LayerSupport.cpp @@ -3,6 +3,7 @@ // SPDX-License-Identifier: MIT // #include +#include #include #include @@ -36,16 +37,16 @@ void CopyErrorMessage(char* truncatedString, const char* fullString, size_t maxL switch(compute) \ { \ case Compute::CpuRef: \ - isSupported = func##Ref(__VA_ARGS__, &reasonIfUnsupportedFull); \ + isSupported = func##Ref(__VA_ARGS__, Optional(reasonIfUnsupportedFull)); \ break; \ case Compute::CpuAcc: \ - isSupported = func##Neon(__VA_ARGS__, &reasonIfUnsupportedFull); \ + isSupported = func##Neon(__VA_ARGS__, Optional(reasonIfUnsupportedFull)); \ break; \ case Compute::GpuAcc: \ - isSupported = func##Cl(__VA_ARGS__, &reasonIfUnsupportedFull); \ + isSupported = func##Cl(__VA_ARGS__, Optional(reasonIfUnsupportedFull)); \ break; \ default: \ - isSupported = func##Ref(__VA_ARGS__, &reasonIfUnsupportedFull); \ + isSupported = func##Ref(__VA_ARGS__, Optional(reasonIfUnsupportedFull)); \ break; \ } \ CopyErrorMessage(reasonIfUnsupported, reasonIfUnsupportedFull.c_str(), reasonIfUnsupportedMaxLength); \ -- cgit v1.2.1