diff --git a/include/libtorrent/aux_/aligned_union.hpp b/include/libtorrent/aux_/aligned_union.hpp index 0864b08357..9a9b4a6f81 100644 --- a/include/libtorrent/aux_/aligned_union.hpp +++ b/include/libtorrent/aux_/aligned_union.hpp @@ -38,8 +38,6 @@ POSSIBILITY OF SUCH DAMAGE. namespace libtorrent { namespace aux { -#if __cplusplus >= 202302L || defined __GNUC__ && __GNUC__ < 5 && !defined(_LIBCPP_VERSION) - constexpr std::size_t max(std::size_t a) { return a; } @@ -62,12 +60,6 @@ struct aligned_union }; }; -#else - -using std::aligned_union; - -#endif - }} #endif