diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2020-09-11 10:14:57 +0100 |
---|---|---|
committer | Matthew Sloyan <matthew.sloyan@arm.com> | 2020-09-29 08:01:57 +0000 |
commit | 371b70e39390618cbd791b441adcf3923964b8df (patch) | |
tree | b869b0b3e5064e9c5abab8a02b111a497a6326d2 /src/profiling/test/RequestCountersPacketHandler.cpp | |
parent | 1f0e2f9dbf14a719aef09649b19a656a6b03c7ce (diff) | |
download | armnn-371b70e39390618cbd791b441adcf3923964b8df.tar.gz |
IVGCVSW-5301 Remove all boost::numeric_cast from armnn/src/profiling
* Replaced with armnn/utility/NumericCast.hpp
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Change-Id: I14e89c00cd1dd607315113d5b8ca56c2e9f6c363
Diffstat (limited to 'src/profiling/test/RequestCountersPacketHandler.cpp')
-rw-r--r-- | src/profiling/test/RequestCountersPacketHandler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 <common/include/PacketVersionResolver.hpp> +#include <armnn/utility/NumericCast.hpp> + +#include <common/include/PacketVersionResolver.hpp> #include <common/include/ProfilingException.hpp> 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<uint32_t>(m_IdList.size()) * uint16_t_size; + uint32_t bodySize = uint32_t_size + armnn::numeric_cast<uint32_t>(m_IdList.size()) * uint16_t_size; auto uniqueData = std::make_unique<unsigned char[]>(bodySize); auto data = reinterpret_cast<unsigned char*>(uniqueData.get()); |