Skip to content

Commit fb3c655

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcxx/include/__exception/exception_ptr.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <__type_traits/decay.h>
1818
#include <__type_traits/is_pointer.h>
1919
#include <__utility/move.h>
20+
#include <__utility/swap.h>
2021
#include <cstdlib>
2122
#include <typeinfo>
2223

@@ -107,7 +108,7 @@ class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
107108
};
108109

109110
inline _LIBCPP_HIDE_FROM_ABI void swap(exception_ptr& __x, exception_ptr& __y) _NOEXCEPT {
110-
swap(__x.__ptr_, __y.__ptr_);
111+
std::swap(__x.__ptr_, __y.__ptr_);
111112
}
112113

113114
# if _LIBCPP_HAS_EXCEPTIONS

0 commit comments

Comments
 (0)