Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit f49772a

Browse files
Merge pull request #1240 from lukaszstolarczuk/merge-stable-1.12-into-stable-1.13
Merge stable-1.12 into stable-1.13
2 parents e472cdf + 679e5f4 commit f49772a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/libpmemobj++/experimental/radix_tree.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

30043003
template <typename Key, typename Value, typename BytesView, bool MtMode>
30053004
template <bool Direction, typename Ptr>
3006-
auto
3005+
typename radix_tree<Key, Value, BytesView,
3006+
MtMode>::node::template iterator<Direction>
30073007
radix_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

30193018
template <typename Key, typename Value, typename BytesView, bool MtMode>
30203019
template <bool Direction, typename Enable>
3021-
auto
3020+
typename radix_tree<Key, Value, BytesView,
3021+
MtMode>::node::template iterator<Direction>
30223022
radix_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

Comments
 (0)