PR libstdc++/88738 treat shared_ptr and unique_ptr more like plain old pointers
authorUlrich Drepper <drepper@redhat.com>
Wed, 16 Jan 2019 08:01:22 +0000 (08:01 +0000)
committerUlrich Drepper <drepper@gcc.gnu.org>
Wed, 16 Jan 2019 08:01:22 +0000 (08:01 +0000)
commitec0d53719f24e994706ff661ffef6cf358974554
treeb9245463a68430af8129b767c77468d18b048233
parentdf1de0641543701e6cde7c47e1da594eed83325e
PR libstdc++/88738 treat shared_ptr and unique_ptr more like plain old pointers

        PR libstdc++/88738
        Warn about unused comparisons of shared_ptr/unique_ptr
        * include/bits/c++config [_GLIBCXX_NODISCARD]: Define.
        * include/bits/shared_ptr.h: Use it for operator ==, !=,
        <, <=, >, >= for shared_ptr.
        * include/bits/unique_ptr.h: Likewise for unique_ptr.

From-SVN: r267964
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/c++config
libstdc++-v3/include/bits/shared_ptr.h
libstdc++-v3/include/bits/unique_ptr.h