Skip to content

Commit

Permalink
remove use of std::aligned_union
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Jan 23, 2025
1 parent f02b6e7 commit 71323dd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/libtorrent/aux_/aligned_union.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand All @@ -62,12 +60,6 @@ struct aligned_union
};
};

#else

using std::aligned_union;

#endif

}}

#endif

0 comments on commit 71323dd

Please sign in to comment.