Skip to content

Commit b8c5630

Browse files
committed
Fix ADL call
1 parent 222ece0 commit b8c5630

File tree

2 files changed

+8
-24
lines changed

2 files changed

+8
-24
lines changed

libcxx/include/forward_list

+4-4
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ struct __forward_node_traits {
296296
# endif
297297

298298
_LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI static __begin_node_pointer __as_iter_node(__node_pointer __p) {
299-
return __static_fancy_pointer_cast<__begin_node_pointer>(__p);
299+
return std::__static_fancy_pointer_cast<__begin_node_pointer>(__p);
300300
}
301301
};
302302

@@ -311,7 +311,7 @@ struct __forward_begin_node {
311311
_LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI explicit __forward_begin_node(pointer __n) : __next_(__n) {}
312312

313313
_LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI __begin_node_pointer __next_as_begin() const {
314-
return __static_fancy_pointer_cast<__begin_node_pointer>(__next_);
314+
return std::__static_fancy_pointer_cast<__begin_node_pointer>(__next_);
315315
}
316316
};
317317

@@ -367,7 +367,7 @@ class _LIBCPP_TEMPLATE_VIS __forward_list_iterator {
367367

368368
_LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI __begin_node_pointer __get_begin() const { return __ptr_; }
369369
_LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI __node_pointer __get_unsafe_node_pointer() const {
370-
return __static_fancy_pointer_cast<__node_pointer>(__ptr_);
370+
return std::__static_fancy_pointer_cast<__node_pointer>(__ptr_);
371371
}
372372

373373
_LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI explicit __forward_list_iterator(nullptr_t) _NOEXCEPT
@@ -436,7 +436,7 @@ class _LIBCPP_TEMPLATE_VIS __forward_list_const_iterator {
436436

437437
_LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI __begin_node_pointer __get_begin() const { return __ptr_; }
438438
_LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI __node_pointer __get_unsafe_node_pointer() const {
439-
return __static_fancy_pointer_cast<__node_pointer>(__ptr_);
439+
return std::__static_fancy_pointer_cast<__node_pointer>(__ptr_);
440440
}
441441

442442
_LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI explicit __forward_list_const_iterator(nullptr_t) _NOEXCEPT

libcxx/test/support/counting_predicates.h

+4-20
Original file line numberDiff line numberDiff line change
@@ -43,33 +43,17 @@ struct binary_counting_predicate {
4343
typedef Arg2 second_argument_type;
4444
typedef bool result_type;
4545

46-
<<<<<<< HEAD
47-
TEST_CONSTEXPR binary_counting_predicate(Predicate p) : p_(p), count_(0) {}
48-
TEST_CONSTEXPR_CXX14 bool operator()(const Arg1& a1, const Arg2& a2) const {
49-
++count_;
50-
return p_(a1, a2);
51-
}
52-
TEST_CONSTEXPR std::size_t count() const { return count_; }
53-
TEST_CONSTEXPR_CXX14 void reset() { count_ = 0; }
54-
55-
private:
56-
Predicate p_;
57-
mutable std::size_t count_;
58-
=======
59-
binary_counting_predicate(Predicate p) : p_(p), count_(0) {}
60-
~binary_counting_predicate() {}
61-
62-
bool operator()(const Arg1& a1, const Arg2& a2) const {
46+
TEST_CONSTEXPR binary_counting_predicate(Predicate p) : p_(p), count_(0) {}
47+
TEST_CONSTEXPR_CXX14 bool operator()(const Arg1& a1, const Arg2& a2) const {
6348
++count_;
6449
return p_(a1, a2);
6550
}
66-
std::size_t count() const { return count_; }
67-
void reset() { count_ = 0; }
51+
TEST_CONSTEXPR std::size_t count() const { return count_; }
52+
TEST_CONSTEXPR_CXX14 void reset() { count_ = 0; }
6853

6954
private:
7055
Predicate p_;
7156
mutable std::size_t count_;
72-
>>>>>>> 577d8638ae21 (Make forward_list constexpr as part of P3372R3)
7357
};
7458

7559
#if TEST_STD_VER > 14

0 commit comments

Comments
 (0)