Replace safe bool idiom with explicit operator bool
authorJonathan Wakely <jwakely@redhat.com>
Tue, 31 Jul 2018 14:55:36 +0000 (15:55 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 31 Jul 2018 14:55:36 +0000 (15:55 +0100)
commit77a6c969e9c39e1168748c17b7dc33154ae325d7
tree5ccaaa4d5841819f98d41d03b04a4a0957b5316b
parentddf98a96d0112377361258068a167ba7e51ed345
Replace safe bool idiom with explicit operator bool

* include/ext/pointer.h [__cplusplus >= 201103L]
(_Pointer_adapter::operator bool): Add explicit conversion operator
to replace safe bool idiom.

From-SVN: r263162
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/pointer.h