Skip to content

Commit 08b0a14

Browse files
committed
Apply std in front of swap in the correct place
1 parent 2a22036 commit 08b0a14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/__exception/exception_ptr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
8585
exception_ptr& operator=(const exception_ptr&) _NOEXCEPT;
8686
_LIBCPP_HIDE_FROM_ABI exception_ptr& operator=(exception_ptr&& __other) _NOEXCEPT {
8787
exception_ptr __tmp(std::move(__other));
88-
std::swap(__tmp, *this);
88+
swap(__tmp, *this);
8989
return *this;
9090
}
9191
~exception_ptr() _NOEXCEPT;
@@ -107,7 +107,7 @@ class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
107107
};
108108

109109
inline _LIBCPP_HIDE_FROM_ABI void swap(exception_ptr& __x, exception_ptr& __y) _NOEXCEPT {
110-
swap(__x.__ptr_, __y.__ptr_);
110+
std::swap(__x.__ptr_, __y.__ptr_);
111111
}
112112

113113
# if _LIBCPP_HAS_EXCEPTIONS

0 commit comments

Comments
 (0)