Fix typos in experimental::shared_ptr
authorJonathan Wakely <jwakely@redhat.com>
Tue, 18 Oct 2016 18:30:38 +0000 (19:30 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 18 Oct 2016 18:30:38 +0000 (19:30 +0100)
commit8a9ff71f5bbaa6828c82025b5481bed75f6a56c5
tree601021fa5080c0205f1b1d44ee0759c737ef1b79
parente25a366f6fbfec00094d243a41b0d9dacdd66575
Fix typos in experimental::shared_ptr

* include/experimental/bits/shared_ptr.h (shared_ptr(shared_ptr&&)):
Remove const from parameter.
(operator<(const shared_ptr<T>&, nullptr_t)): Use correct
specialization of std::less.
* testsuite/experimental/memory/shared_ptr/comparison/comparison.cc:
Test comparison with nullptr and actually call test functions.

From-SVN: r241310
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/bits/shared_ptr.h
libstdc++-v3/testsuite/experimental/memory/shared_ptr/comparison/comparison.cc