From 371b70e39390618cbd791b441adcf3923964b8df Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Fri, 11 Sep 2020 10:14:57 +0100 Subject: IVGCVSW-5301 Remove all boost::numeric_cast from armnn/src/profiling * Replaced with armnn/utility/NumericCast.hpp Signed-off-by: Matthew Sloyan Change-Id: I14e89c00cd1dd607315113d5b8ca56c2e9f6c363 --- src/profiling/test/RequestCountersPacketHandler.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/profiling/test/RequestCountersPacketHandler.cpp') diff --git a/src/profiling/test/RequestCountersPacketHandler.cpp b/src/profiling/test/RequestCountersPacketHandler.cpp index 230c38857f..3ba50503a1 100644 --- a/src/profiling/test/RequestCountersPacketHandler.cpp +++ b/src/profiling/test/RequestCountersPacketHandler.cpp @@ -6,8 +6,10 @@ #include "RequestCountersPacketHandler.hpp" #include "DirectoryCaptureCommandHandler.hpp" -#include +#include + +#include #include namespace armnn @@ -53,7 +55,7 @@ void RequestCountersPacketHandler::SendCounterSelectionPacket() uint32_t uint32_t_size = sizeof(uint32_t); uint32_t offset = 0; - uint32_t bodySize = uint32_t_size + boost::numeric_cast(m_IdList.size()) * uint16_t_size; + uint32_t bodySize = uint32_t_size + armnn::numeric_cast(m_IdList.size()) * uint16_t_size; auto uniqueData = std::make_unique(bodySize); auto data = reinterpret_cast(uniqueData.get()); -- cgit v1.2.1