Mark LWG#2782 as complete. No functionality change; we already do this. Just added a few more tests.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@302802 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -107,5 +107,11 @@ int main()
|
||||
assert((a.inner_allocator() ==
|
||||
std::scoped_allocator_adaptor<A2<int>, A3<int>>(A2<int>(5), A3<int>(6))));
|
||||
}
|
||||
|
||||
// Test for LWG2782
|
||||
{
|
||||
static_assert(!std::is_convertible<A1<int>, A2<int>>::value, "");
|
||||
static_assert(!std::is_convertible<
|
||||
std::scoped_allocator_adaptor<A1<int>>,
|
||||
std::scoped_allocator_adaptor<A2<int>>>::value, "");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user