aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/LayerSupport.cpp
diff options
context:
space:
mode:
authorarovir01 <Aron.Virginas-Tar@arm.com>2018-10-08 14:48:19 +0100
committerMatthew Bentham <matthew.bentham@arm.com>2018-10-10 16:16:58 +0100
commit085f0a42623401f78bd1df34cdcebe8555809410 (patch)
tree6b9e14d10c4969598e0b4dd86dd984e248e76891 /src/armnn/LayerSupport.cpp
parent537a0b676a7499fbf160d9947d78a65d79c9b444 (diff)
downloadarmnn-085f0a42623401f78bd1df34cdcebe8555809410.tar.gz
IVGCVSW-1985: Replace std::string* reasonIfNotSupported with Optional<std::string&> in IsLayerSupported implementations
Change-Id: I2f054f0dcff9bdc86ee90c55b3e94c6b4ae25085
Diffstat (limited to 'src/armnn/LayerSupport.cpp')
-rw-r--r--src/armnn/LayerSupport.cpp9
1 files changed, 5 insertions, 4 deletions
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 <armnn/LayerSupport.hpp>
+#include <armnn/Optional.hpp>
#include <backends/reference/RefLayerSupport.hpp>
#include <backends/neon/NeonLayerSupport.hpp>
@@ -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<std::string&>(reasonIfUnsupportedFull)); \
break; \
case Compute::CpuAcc: \
- isSupported = func##Neon(__VA_ARGS__, &reasonIfUnsupportedFull); \
+ isSupported = func##Neon(__VA_ARGS__, Optional<std::string&>(reasonIfUnsupportedFull)); \
break; \
case Compute::GpuAcc: \
- isSupported = func##Cl(__VA_ARGS__, &reasonIfUnsupportedFull); \
+ isSupported = func##Cl(__VA_ARGS__, Optional<std::string&>(reasonIfUnsupportedFull)); \
break; \
default: \
- isSupported = func##Ref(__VA_ARGS__, &reasonIfUnsupportedFull); \
+ isSupported = func##Ref(__VA_ARGS__, Optional<std::string&>(reasonIfUnsupportedFull)); \
break; \
} \
CopyErrorMessage(reasonIfUnsupported, reasonIfUnsupportedFull.c_str(), reasonIfUnsupportedMaxLength); \