aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/test/UnitTests.cpp
diff options
context:
space:
mode:
authorMatthew Sloyan <matthew.sloyan@arm.com>2020-09-14 11:47:26 +0100
committerJan Eilers <jan.eilers@arm.com>2020-09-17 09:41:12 +0000
commit0663d66c64d8f1cb2b6158f9018c9ba19e2c504b (patch)
treeab8370395d7009f109e15463dbcf644191c1d639 /src/armnn/test/UnitTests.cpp
parent171214c8ff275c90cd4f7fc23a34ec2c83b5ea39 (diff)
downloadarmnn-0663d66c64d8f1cb2b6158f9018c9ba19e2c504b.tar.gz
IVGCVSW-5303 Remove some boost::numeric_cast from rest of ArmNN
* Replaced with armnn/utility/NumericCast.hpp * Exclusions in TypeUtils.cpp and QuantizerVisitor.cpp * Excluded as requires float implementation in NumericCast.hpp Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I5c4c60e7028e1a51bf9379457278d253fd37bc70
Diffstat (limited to 'src/armnn/test/UnitTests.cpp')
-rw-r--r--src/armnn/test/UnitTests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/armnn/test/UnitTests.cpp b/src/armnn/test/UnitTests.cpp
index 032a49fb90..7b5ba37ae2 100644
--- a/src/armnn/test/UnitTests.cpp
+++ b/src/armnn/test/UnitTests.cpp
@@ -7,6 +7,7 @@
#include "UnitTests.hpp"
#include <armnn/Logging.hpp>
+#include <armnn/utility/NumericCast.hpp>
struct ConfigureLoggingFixture
{
@@ -34,7 +35,7 @@ struct DebugOutputSink : boost::iostreams::sink
std::streamsize write(const char* s, std::streamsize n)
{
// The given string is not null-terminated, so we need to copy it.
- std::string s2(s, boost::numeric_cast<size_t>(n));
+ std::string s2(s, armnn::numeric_cast<size_t>(n));
OutputDebugString(s2.c_str());
return n;
}