aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2010-08-11 08:49:47 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2010-08-11 08:49:47 +0000
commit3abeaf8f89f246f481c869a09d0715a2762bde28 (patch)
tree7b9f9a2cd71a9f12a49311af70596d15abe4c21b /gcc
parent8fe286ea6d3807259c46054ea1f11d1a26ed4cc0 (diff)
downloadgcc-3abeaf8f89f246f481c869a09d0715a2762bde28.zip
gcc-3abeaf8f89f246f481c869a09d0715a2762bde28.tar.gz
gcc-3abeaf8f89f246f481c869a09d0715a2762bde28.tar.bz2
re PR libstdc++/42925 ([GB 99] Not possible to compare unique_ptr with 0)
2010-08-11 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/42925 * include/bits/unique_ptr.h (operator==(const unique_ptr<>&, nullptr_t), operator==(nullptr_t, const unique_ptr<>&), operator!=(const unique_ptr<>&, nullptr_t), operator!=(nullptr_t, const unique_ptr<>&)): Add. * include/bits/shared_ptr_base.h (operator==(const __shared_ptr<>&, nullptr_t), operator==(nullptr_t, const __shared_ptr<>&), operator!=(const __shared_ptr<>&, nullptr_t), operator!=(nullptr_t, const __shared_ptr<>&)): Likewise. * include/bits/shared_ptr.h (operator==(const shared_ptr<>&, nullptr_t), operator==(nullptr_t, const shared_ptr<>&), operator!=(const shared_ptr<>&, nullptr_t), operator!=(nullptr_t, const shared_ptr<>&)): Likewise. * testsuite/20_util/unique_ptr/comparison/42925.cc: New. * testsuite/20_util/shared_ptr/comparison/42925.cc: Likewise. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error line numbers. From-SVN: r163094
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions