From 0663d66c64d8f1cb2b6158f9018c9ba19e2c504b Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Mon, 14 Sep 2020 11:47:26 +0100 Subject: 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 Change-Id: I5c4c60e7028e1a51bf9379457278d253fd37bc70 --- src/armnn/test/UnitTests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/armnn/test/UnitTests.cpp') 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 +#include 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(n)); + std::string s2(s, armnn::numeric_cast(n)); OutputDebugString(s2.c_str()); return n; } -- cgit v1.2.1