Skip to content

Commit 5348743

Browse files
committed
Fix conflict
1 parent d0dae90 commit 5348743

File tree

1 file changed

+6
-18
lines changed
  • cpp/common/test/includes/standard-library

1 file changed

+6
-18
lines changed

cpp/common/test/includes/standard-library/utility.h

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,12 @@ template <class T> typename add_rvalue_reference<T>::type declval() noexcept;
1111

1212
template <class T> void swap(T &a, T &b) noexcept;
1313

14-
template<class... Types>
15-
struct tuple {};
16-
17-
template <class T, class U> struct pair : tuple<T, U> {
18-
T first;
19-
U second;
20-
pair(T t, U u);
14+
template <class T1, class T2> struct pair {
15+
T1 first;
16+
T2 second;
17+
pair(const T1 &a, const T2 &b);
2118
};
22-
template <class T, class U> std::pair<T, U> make_pair(T &&x, U &&y);
2319

24-
template<size_t N, class T, class U>
25-
constexpr auto get(const std::pair<T, U> &p) noexcept {
26-
if constexpr (N == 0) {
27-
return p.first;
28-
} else if constexpr (N == 1) {
29-
return p.second;
30-
} else {
31-
static_assert(N < 2, "Index out of bounds for pair");
32-
}
33-
}
3420
} // namespace std
21+
22+
#endif // _GHLIBCPP_UTILITY

0 commit comments

Comments
 (0)