aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Kelly <mike.kelly@arm.com>2023-12-04 17:23:09 +0000
committerNikhil Raj Arm <nikhil.raj@arm.com>2023-12-05 16:58:10 +0000
commita9c3267d1a20e69a9cc0ae98b52958a6277e2f0d (patch)
treecf8ba49f42bcdb6d8360ca705b247bdd656925f8 /include
parenta8337d7a1e9f5aa3ed380dd0f5a4cf7636360122 (diff)
downloadarmnn-a9c3267d1a20e69a9cc0ae98b52958a6277e2f0d.tar.gz
IVGCVSW-8159 Fixed issues building with NDK r26
* The compiler shipped with NDK r26 has stricter rules around certain warnings and deprecation notices. * Fixed warnings for unqualified call to 'std::move' * Fixed error where the half values weren't being cast to a float when calling 'std::nan' * Removed unnecessary subtensor unit tests for neon Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I4ceb46e55ff5f2a754452e3a43de2188d58bf927
Diffstat (limited to 'include')
-rw-r--r--include/armnn/utility/TransformIterator.hpp5
-rw-r--r--include/armnnTestUtils/TensorHelpers.hpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/include/armnn/utility/TransformIterator.hpp b/include/armnn/utility/TransformIterator.hpp
index b038447f36..e37c8a7155 100644
--- a/include/armnn/utility/TransformIterator.hpp
+++ b/include/armnn/utility/TransformIterator.hpp
@@ -8,7 +8,6 @@
namespace armnn
{
-
template<typename Function,
typename Iterator,
typename Category = typename std::iterator_traits<Iterator>::iterator_category,
@@ -16,7 +15,7 @@ template<typename Function,
typename Distance = typename std::iterator_traits<Iterator>::difference_type,
typename Pointer = typename std::iterator_traits<Iterator>::pointer,
typename Reference =
- typename std::result_of<const Function(typename std::iterator_traits<Iterator>::reference)>::type
+ typename std::invoke_result<const Function, typename std::iterator_traits<Iterator>::reference>::type
>
class TransformIterator
{
@@ -73,7 +72,7 @@ public:
bool operator<=(const TransformIterator& rhs) const {return m_it <= rhs.m_it;}
bool operator==(TransformIterator other) const {return (m_it == other.m_it);}
- bool operator!=(TransformIterator other) const {return !(m_it == other.m_it);}
+ bool operator!=(TransformIterator other) const {return (m_it != other.m_it);}
Reference operator*() const {return m_fn(*m_it);}
diff --git a/include/armnnTestUtils/TensorHelpers.hpp b/include/armnnTestUtils/TensorHelpers.hpp
index fa9c97032c..14c5061334 100644
--- a/include/armnnTestUtils/TensorHelpers.hpp
+++ b/include/armnnTestUtils/TensorHelpers.hpp
@@ -47,7 +47,7 @@ struct SelectiveComparer<T, false>
return true;
}
- if (std::isnan(a) && std::isnan(b))
+ if (std::isnan(static_cast<float>(a)) && std::isnan(static_cast<float>(b)))
{
return true;
}