From a8837bfcf45136f178a9884b7c6f6449b3e6ed41 Mon Sep 17 00:00:00 2001 From: David Monahan Date: Thu, 16 Apr 2020 10:01:56 +0100 Subject: IVGCVSW-4513 Remove boost/algorithm/string * * Removed split, classification, trim, string, join, contains * Added StringUtils.hpp to replace the removed Boost String functionality Signed-off-by: David Monahan Change-Id: I8aa938dc3942cb65c512cccb2c069da66aa24668 --- src/armnnConverter/ArmnnConverter.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/armnnConverter/ArmnnConverter.cpp') diff --git a/src/armnnConverter/ArmnnConverter.cpp b/src/armnnConverter/ArmnnConverter.cpp index e0a659dca3..6d0952ac01 100644 --- a/src/armnnConverter/ArmnnConverter.cpp +++ b/src/armnnConverter/ArmnnConverter.cpp @@ -21,10 +21,9 @@ #endif #include +#include "armnn/utility/StringUtils.hpp" #include -#include -#include #include #include @@ -43,17 +42,7 @@ armnn::TensorShape ParseTensorShape(std::istream& stream) while (std::getline(stream, line)) { - std::vector tokens; - try - { - // Coverity fix: boost::split() may throw an exception of type boost::bad_function_call. - boost::split(tokens, line, boost::algorithm::is_any_of(","), boost::token_compress_on); - } - catch (const std::exception& e) - { - ARMNN_LOG(error) << "An error occurred when splitting tokens: " << e.what(); - continue; - } + std::vector tokens = armnn::stringUtils::StringTokenizer(line, ","); for (const std::string& token : tokens) { if (!token.empty()) -- cgit v1.2.1