shared_ptr.hpp: minor fixup for arrays

This commit is contained in:
Nekotekina 2021-02-03 22:01:30 +03:00
parent ff211a9508
commit aa7e2376ec

View File

@ -324,7 +324,7 @@ namespace stx
if constexpr (alignof(etype) > (__STDCPP_DEFAULT_NEW_ALIGNMENT__))
{
bytes = new (std::align_val_t{alignof(etype)}) std::byte[size];
bytes = static_cast<std::byte*>(::operator new(size, std::align_val_t{alignof(etype)}));
}
else
{