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:
Marshall Clow
2017-05-11 14:25:45 +00:00
parent 8fdc890aeb
commit 83c266a94f
2 changed files with 8 additions and 2 deletions

View File

@@ -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, "");
}
}