Use new <__utility/swap.h> header for modern libc++ versions. Fixes #57

This commit is contained in:
Ion Gaztañaga
2024-11-27 21:27:11 +01:00
parent 5fe1c7a435
commit b7a04d3201

View File

@ -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