Skip to content

Commit b7a04d3

Browse files
committed
Use new <__utility/swap.h> header for modern libc++ versions. Fixes #57
1 parent 5fe1c7a commit b7a04d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/boost/move/adl_move_swap.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
//In GCC 4.4 stl_move.h was renamed to move.h
4141
#include <bits/move.h>
4242
#endif
43+
#elif defined(_LIBCPP_VERSION) && (_LIBCPP_VERSION >= 13000)
44+
#include <__utility/swap.h> //libc++ refactored <utility> headers in smaller headers
4345
#elif defined(_LIBCPP_VERSION)
4446
#include <type_traits> //The initial import of libc++ defines std::swap and still there
4547
#elif __cplusplus >= 201103L

0 commit comments

Comments
 (0)