11// SPDX-License-Identifier: BSD-3-Clause
2- /* Copyright 2020-2021 , Intel Corporation */
2+ /* Copyright 2020-2022 , Intel Corporation */
33
44/* *
55 * @file
@@ -583,13 +583,12 @@ struct radix_tree<Key, Value, BytesView, MtMode>::node {
583583 end () const ;
584584
585585 template <bool Direction = direction::Forward, typename Ptr>
586- auto find_child (const Ptr &n) const -> decltype(begin<Direction>()) ;
586+ iterator<Direction> find_child (const Ptr &n) const ;
587587
588588 template <bool Direction = direction::Forward,
589589 typename Enable = typename std::enable_if<
590590 Direction == direction::Forward>::type>
591- auto make_iterator (const atomic_pointer_type *ptr) const
592- -> decltype(begin<Direction>());
591+ iterator<Direction> make_iterator (const atomic_pointer_type *ptr) const ;
593592
594593 uint8_t padding[256 - sizeof (parent) - sizeof (leaf) - sizeof (child) -
595594 sizeof (byte) - sizeof (bit)];
@@ -3003,9 +3002,9 @@ radix_tree<Key, Value, BytesView, MtMode>::node::end() const
30033002
30043003template <typename Key, typename Value, typename BytesView, bool MtMode>
30053004template <bool Direction, typename Ptr>
3006- auto
3005+ typename radix_tree<Key, Value, BytesView,
3006+ MtMode>::node::template iterator<Direction>
30073007radix_tree<Key, Value, BytesView, MtMode>::node::find_child(const Ptr &n) const
3008- -> decltype (begin<Direction>())
30093008{
30103009 auto it = begin<Direction>();
30113010 while (it != end<Direction>()) {
@@ -3018,9 +3017,10 @@ radix_tree<Key, Value, BytesView, MtMode>::node::find_child(const Ptr &n) const
30183017
30193018template <typename Key, typename Value, typename BytesView, bool MtMode>
30203019template <bool Direction, typename Enable>
3021- auto
3020+ typename radix_tree<Key, Value, BytesView,
3021+ MtMode>::node::template iterator<Direction>
30223022radix_tree<Key, Value, BytesView, MtMode>::node::make_iterator(
3023- const atomic_pointer_type *ptr) const -> decltype (begin<Direction>())
3023+ const atomic_pointer_type *ptr) const
30243024{
30253025 return forward_iterator (ptr, this );
30263026}
0 commit comments