pick standard std::aligned_union if using clang (#2447)
This commit is contained in:
parent
516df740a3
commit
762ae9aec4
|
@ -37,7 +37,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
namespace libtorrent { namespace aux {
|
||||
|
||||
#if defined __GNUC__ && __GNUC__ < 5
|
||||
#if defined __GNUC__ && __GNUC__ < 5 && !defined(_LIBCPP_VERSION)
|
||||
|
||||
// this is for backwards compatibility with not-quite C++11 compilers
|
||||
template <std::size_t Len, std::size_t Align = alignof(void*)>
|
||||
|
|
|
@ -37,7 +37,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
namespace libtorrent { namespace aux {
|
||||
|
||||
#if defined __GNUC__ && __GNUC__ < 5
|
||||
#if defined __GNUC__ && __GNUC__ < 5 && !defined(_LIBCPP_VERSION)
|
||||
|
||||
constexpr std::size_t max(std::size_t a)
|
||||
{ return a; }
|
||||
|
|
Loading…
Reference in New Issue