diff options
author | Pablo Marquez Tello <pablo.tello@arm.com> | 2023-03-31 15:57:43 +0100 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2023-04-05 11:25:36 +0000 |
commit | 1bf35f5b8b480b2af3e904cb64e4bd5c6147b0fb (patch) | |
tree | 3caf924d42b4b53373f1a505aca36db09ff609ee /include/armnn/utility/TransformIterator.hpp | |
parent | f0755de796bbe6a763fbfc349465484c88b9b3eb (diff) | |
download | armnn-1bf35f5b8b480b2af3e904cb64e4bd5c6147b0fb.tar.gz |
Fix gcc 13 compiler errors
* Resolves MLCE-1040
Change-Id: I32878ed70af356832403e83dcb63b0b89a8a84e3
Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com>
Diffstat (limited to 'include/armnn/utility/TransformIterator.hpp')
-rw-r--r-- | include/armnn/utility/TransformIterator.hpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/armnn/utility/TransformIterator.hpp b/include/armnn/utility/TransformIterator.hpp index f65ac790d0..b038447f36 100644 --- a/include/armnn/utility/TransformIterator.hpp +++ b/include/armnn/utility/TransformIterator.hpp @@ -1,5 +1,5 @@ // -// Copyright © 2020 Arm Ltd and Contributors. All rights reserved. +// Copyright © 2020,2023 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once @@ -18,10 +18,15 @@ template<typename Function, typename Reference = typename std::result_of<const Function(typename std::iterator_traits<Iterator>::reference)>::type > -class TransformIterator : public std::iterator<Category, T, Distance, Pointer, Reference> +class TransformIterator { - public: + using iterator_category = Category; + using value_type = T; + using difference_type = Distance; + using pointer = Pointer; + using reference = Reference; + TransformIterator() = default; TransformIterator(TransformIterator const& transformIterator) = default; @@ -83,4 +88,4 @@ constexpr TransformIterator<Function, Iterator> MakeTransformIterator(Iterator i return TransformIterator<Function, Iterator>(i, f); } -}
\ No newline at end of file +} |