diff options
author | James Ward <james.ward@arm.com> | 2020-09-10 11:57:28 +0100 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2020-10-02 09:35:59 +0000 |
commit | 47fce874eae7b2d419373c9ee5826ea4f4fcb2e8 (patch) | |
tree | 0b20fa334ca59fbe848cbed26075e3991b8be4ba /src/backends/backendsCommon/DynamicBackend.cpp | |
parent | 58dec6bab3d8d588a37d93bafcada89947c9cd58 (diff) | |
download | armnn-47fce874eae7b2d419373c9ee5826ea4f4fcb2e8.tar.gz |
IVGCVSW-5294 Remove boost::format armnn backends
* replaced with fmt::format
* one case required std:stringstream instead
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: Ife7c4cf5f143e43373f42edf6124158af132abc5
Diffstat (limited to 'src/backends/backendsCommon/DynamicBackend.cpp')
-rw-r--r-- | src/backends/backendsCommon/DynamicBackend.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/backends/backendsCommon/DynamicBackend.cpp b/src/backends/backendsCommon/DynamicBackend.cpp index 8af61c050c..77ae83f971 100644 --- a/src/backends/backendsCommon/DynamicBackend.cpp +++ b/src/backends/backendsCommon/DynamicBackend.cpp @@ -30,11 +30,12 @@ DynamicBackend::DynamicBackend(const void* sharedObjectHandle) BackendVersion backendVersion = GetBackendVersion(); if (!DynamicBackendUtils::IsBackendCompatible(backendVersion)) { - throw RuntimeException(boost::str(boost::format("The dynamic backend %1% (version %2%) is not compatible" - "with the current Backend API (vesion %3%)") - % backendId - % backendVersion - % IBackendInternal::GetApiVersion())); + // This exception message could not be formatted simply using fmt::format + std::stringstream message; + message << "The dynamic backend " << backendId << " (version " << backendVersion << + ") is not compatible with the current Backend API (version " << IBackendInternal::GetApiVersion() << ")"; + + throw RuntimeException(message.str()); } } |