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 fb3c655Copy full SHA for fb3c655
libcxx/include/__exception/exception_ptr.h
@@ -17,6 +17,7 @@
17
#include <__type_traits/decay.h>
18
#include <__type_traits/is_pointer.h>
19
#include <__utility/move.h>
20
+#include <__utility/swap.h>
21
#include <cstdlib>
22
#include <typeinfo>
23
@@ -107,7 +108,7 @@ class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
107
108
};
109
110
inline _LIBCPP_HIDE_FROM_ABI void swap(exception_ptr& __x, exception_ptr& __y) _NOEXCEPT {
- swap(__x.__ptr_, __y.__ptr_);
111
+ std::swap(__x.__ptr_, __y.__ptr_);
112
}
113
114
# if _LIBCPP_HAS_EXCEPTIONS
0 commit comments