aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Hughes <robert.hughes@arm.com>2021-02-18 10:18:15 +0000
committerRob Hughes <robert.hughes@arm.com>2021-02-19 08:50:17 +0000
commitea4fce735cd0ae70d6ea6a82a5550764bcf05d30 (patch)
treeee9833bf23c11afd80dfcab667267e80f2bf94f4
parentcbe2cdf62d8cb0054c44968884535d96f88076d1 (diff)
downloadarmnn-ea4fce735cd0ae70d6ea6a82a5550764bcf05d30.tar.gz
Fix TransformIterator operator=
These two operator overloads were giving compile errors as they had misspelled the names of the member variables. Presumably they are not used in any of the code and not tested anywhere, and so the compilers being used on the CI decided to not report this error. I encountered this error using the MSVC compiler, but it may cause problems on others too. Change-Id: I200fc98dbd024d13dbf0e2eca2a0dcd2b0bef261 Signed-off-by: Rob Hughes <robert.hughes@arm.com>
-rw-r--r--include/armnn/utility/TransformIterator.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/armnn/utility/TransformIterator.hpp b/include/armnn/utility/TransformIterator.hpp
index d4f32c5d8a..66fee8715d 100644
--- a/include/armnn/utility/TransformIterator.hpp
+++ b/include/armnn/utility/TransformIterator.hpp
@@ -34,12 +34,12 @@ public:
TransformIterator operator=(TransformIterator const& transformIterator)
{
- return{ transformIterator.it, transformIterator.fn};
+ return { transformIterator.m_it, transformIterator.m_fn };
}
TransformIterator operator=(TransformIterator&& transformIterator)
{
- return{ transformIterator.it, transformIterator.fn};
+ return { transformIterator.m_it, transformIterator.m_fn };
}
TransformIterator operator++() {++m_it; return *this;}