shared_ptr.h (operator>, [...]): Add, per DR 1401.
commit355e71b9df357e5874dc46bd24967f00be6c5a83
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 22 Mar 2011 15:15:03 +0000 (22 15:15 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 22 Mar 2011 15:15:03 +0000 (22 15:15 +0000)
tree9a783b37dac9ef3a9b4901e9f0bd00e0e725048e
parent043747b3b23af3762947f51ead3875c5a0635538
shared_ptr.h (operator>, [...]): Add, per DR 1401.

2011-03-22  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/shared_ptr.h (operator>, operator<=, operator>=): Add,
per DR 1401.
(operator==, operator!=, operator<): Fix per the letter of DR 1401.
* include/bits/shared_ptr_base.h: Likewise for __shared_ptr.
* include/bits/unique_ptr.h (operator==, operator!=, operator<,
operator<=, operator>, operator>=): Fix per the letter of DR 1401.
* testsuite/20_util/shared_ptr/comparison/dr1401.cc: New.
* testsuite/20_util/unique_ptr/comparison/dr1401.cc: Likewise.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust.

From-SVN: r171293
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr.h
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/include/bits/unique_ptr.h
libstdc++-v3/testsuite/20_util/shared_ptr/comparison/dr1401.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/unique_ptr/comparison/dr1401.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc