[libc++] Remove unnecessary static assertion in allocate_shared
authorLouis Dionne <ldionne.2@gmail.com>
Mon, 14 Dec 2020 21:58:52 +0000 (16:58 -0500)
committerLouis Dionne <ldionne.2@gmail.com>
Mon, 14 Dec 2020 22:47:43 +0000 (17:47 -0500)
commitb3d1d1f4fff816423ea8c652d8d849aacc4c6ce8
tree4b13b1f7d8bd8df453ddd2496dcf2118f2d71fac
parent3b7280f5e4aec935c7debf68e792c1aad2f7c5a7
[libc++] Remove unnecessary static assertion in allocate_shared

Checking that `T` is constructible from `Args...` is technically not
required by the Standard, although any implementation will obviously
error out if that's not satisfied. However, this check is incompatible
with using Allocator construction in the control block (upcoming change
as part of implementing P0674), so I'm removing it now to reduce the
upcoming diff as much as possible.

Differential Revision: https://reviews.llvm.org/D93246
libcxx/include/memory
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/allocate_shared.protected.verify.cpp [deleted file]
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.protected.verify.cpp [deleted file]