diff --git a/test/std/utilities/allocator.adaptor/allocator.adaptor.cnstr/allocs.pass.cpp b/test/std/utilities/allocator.adaptor/allocator.adaptor.cnstr/allocs.pass.cpp index 0aef2af85..2aa19c618 100644 --- a/test/std/utilities/allocator.adaptor/allocator.adaptor.cnstr/allocs.pass.cpp +++ b/test/std/utilities/allocator.adaptor/allocator.adaptor.cnstr/allocs.pass.cpp @@ -107,5 +107,11 @@ int main() assert((a.inner_allocator() == std::scoped_allocator_adaptor, A3>(A2(5), A3(6)))); } - +// Test for LWG2782 + { + static_assert(!std::is_convertible, A2>::value, ""); + static_assert(!std::is_convertible< + std::scoped_allocator_adaptor>, + std::scoped_allocator_adaptor>>::value, ""); + } } diff --git a/www/cxx1z_status.html b/www/cxx1z_status.html index c108e71d6..101ad4321 100644 --- a/www/cxx1z_status.html +++ b/www/cxx1z_status.html @@ -437,7 +437,7 @@ 2768any_cast and move semanticsKonaComplete 2769Redundant const in the return type of any_cast(const any&)KonaComplete 2781Contradictory requirements for std::function and std::reference_wrapperKonaComplete - 2782scoped_allocator_adaptor constructors must be constrainedKona + 2782scoped_allocator_adaptor constructors must be constrainedKonaComplete 2784Resolution to LWG 2484 is missing "otherwise, no effects" and is hard to parseKonaComplete 2785quoted should work with basic_string_viewKonaComplete 2786Annex C should mention shared_ptr changes for array supportKonaComplete