Skip to content

Commit

Permalink
Use new <__utility/swap.h> header for modern libc++ versions. Fixes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
igaztanaga committed Nov 27, 2024
1 parent 5fe1c7a commit b7a04d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/boost/move/adl_move_swap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
//In GCC 4.4 stl_move.h was renamed to move.h
#include <bits/move.h>
#endif
#elif defined(_LIBCPP_VERSION) && (_LIBCPP_VERSION >= 13000)
#include <__utility/swap.h> //libc++ refactored <utility> headers in smaller headers
#elif defined(_LIBCPP_VERSION)
#include <type_traits> //The initial import of libc++ defines std::swap and still there
#elif __cplusplus >= 201103L
Expand Down

0 comments on commit b7a04d3

Please sign in to comment.