Mark LWG#2260 as complete. We already did the right thing, so I just added tests to ensure that we continue to DTRT.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@338936 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2018-08-03 23:28:48 +00:00
parent 2580fdbb5a
commit de134800ae
3 changed files with 4 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ int main()
{
{
int i = 0;
static_assert((std::is_same<A<int>, decltype(std::pointer_traits<A<int> >::pointer_to(i))>::value), "");
A<int> a = std::pointer_traits<A<int> >::pointer_to(i);
assert(a.t_ == &i);
}