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

Commit 67ba2be

Browse files
Merge pull request #1236 from pmem/stable-1.11
Merge stable-1.11 into stable-1.12
2 parents 5401d48 + 59f4271 commit 67ba2be

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

include/libpmemobj++/experimental/radix_tree.hpp

Lines changed: 6 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, Intel Corporation */
2+
/* Copyright 2020-2022, Intel Corporation */
33

44
/**
55
* @file
@@ -549,13 +549,12 @@ struct radix_tree<Key, Value, BytesView>::node {
549549
end() const;
550550

551551
template <bool Direction = direction::Forward, typename Ptr>
552-
auto find_child(const Ptr &n) const -> decltype(begin<Direction>());
552+
iterator<Direction> find_child(const Ptr &n) const;
553553

554554
template <bool Direction = direction::Forward,
555555
typename Enable = typename std::enable_if<
556556
Direction == direction::Forward>::type>
557-
auto make_iterator(const tagged_node_ptr *ptr) const
558-
-> decltype(begin<Direction>());
557+
iterator<Direction> make_iterator(const tagged_node_ptr *ptr) const;
559558

560559
uint8_t padding[256 - sizeof(parent) - sizeof(leaf) - sizeof(child) -
561560
sizeof(byte) - sizeof(bit)];
@@ -2720,18 +2719,17 @@ radix_tree<Key, Value, BytesView>::node::end() const
27202719

27212720
template <typename Key, typename Value, typename BytesView>
27222721
template <bool Direction, typename Ptr>
2723-
auto
2722+
typename radix_tree<Key, Value, BytesView>::node::template iterator<Direction>
27242723
radix_tree<Key, Value, BytesView>::node::find_child(const Ptr &n) const
2725-
-> decltype(begin<Direction>())
27262724
{
27272725
return std::find(begin<Direction>(), end<Direction>(), n);
27282726
}
27292727

27302728
template <typename Key, typename Value, typename BytesView>
27312729
template <bool Direction, typename Enable>
2732-
auto
2730+
typename radix_tree<Key, Value, BytesView>::node::template iterator<Direction>
27332731
radix_tree<Key, Value, BytesView>::node::make_iterator(
2734-
const tagged_node_ptr *ptr) const -> decltype(begin<Direction>())
2732+
const tagged_node_ptr *ptr) const
27352733
{
27362734
return forward_iterator(ptr, this);
27372735
}

0 commit comments

Comments
 (0)