re PR c++/67216 (false is still a null pointer constant)
PR c++/67216 * testsuite/tr1/2_general_utilities/shared_ptr/observers/bool_conv.cc: Fix use of safe-bool idiom that isn't valid in C++11. From-SVN: r226986
This commit is contained in:
parent
e92e7c15e1
commit
f641b2d6bb
|
@ -1,5 +1,9 @@
|
|||
2015-08-18 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
PR c++/67216
|
||||
* testsuite/tr1/2_general_utilities/shared_ptr/observers/bool_conv.cc:
|
||||
Fix use of safe-bool idiom that isn't valid in C++11.
|
||||
|
||||
* include/bits/ptr_traits.h: Include <bits/move.h> for addressof.
|
||||
|
||||
PR libstdc++/67066
|
||||
|
|
|
@ -31,9 +31,9 @@ test01()
|
|||
bool test __attribute__((unused)) = true;
|
||||
|
||||
const std::tr1::shared_ptr<A> p1;
|
||||
VERIFY( p1 == false );
|
||||
VERIFY( bool(p1) == false );
|
||||
const std::tr1::shared_ptr<A> p2(p1);
|
||||
VERIFY( p2 == false );
|
||||
VERIFY( bool(p2) == false );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue