We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std
swap
1 parent 2a22036 commit 08b0a14Copy full SHA for 08b0a14
libcxx/include/__exception/exception_ptr.h
@@ -85,7 +85,7 @@ class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
85
exception_ptr& operator=(const exception_ptr&) _NOEXCEPT;
86
_LIBCPP_HIDE_FROM_ABI exception_ptr& operator=(exception_ptr&& __other) _NOEXCEPT {
87
exception_ptr __tmp(std::move(__other));
88
- std::swap(__tmp, *this);
+ swap(__tmp, *this);
89
return *this;
90
}
91
~exception_ptr() _NOEXCEPT;
@@ -107,7 +107,7 @@ class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
107
};
108
109
inline _LIBCPP_HIDE_FROM_ABI void swap(exception_ptr& __x, exception_ptr& __y) _NOEXCEPT {
110
- swap(__x.__ptr_, __y.__ptr_);
+ std::swap(__x.__ptr_, __y.__ptr_);
111
112
113
# if _LIBCPP_HAS_EXCEPTIONS
0 commit comments