Replace safe bool idiom with explicit operator bool
commit22bbe014d6db2f678b9d1bf5b1ac216dd798d9f2
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2018 14:55:36 +0000 (31 14:55 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2018 14:55:36 +0000 (31 14:55 +0000)
tree5ccaaa4d5841819f98d41d03b04a4a0957b5316b
parenta477acc547e031bba8936726b766c8453501957c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263162 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/pointer.h