Commit ff8b2a0a by Jonathan Wakely Committed by Jonathan Wakely

Fix NullablePointer test utility

	* testsuite/util/testsuite_allocator.h (NullablePointer::operator bool):
	Fix return value.

From-SVN: r271189
parent b4d12b5e
2019-05-14 Jonathan Wakely <jwakely@redhat.com>
* testsuite/util/testsuite_allocator.h (NullablePointer::operator bool):
Fix return value.
2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/os/solaris/solaris2.10: Move to ... * config/os/solaris/solaris2.10: Move to ...
......
...@@ -600,7 +600,7 @@ namespace __gnu_test ...@@ -600,7 +600,7 @@ namespace __gnu_test
NullablePointer() = default; NullablePointer() = default;
NullablePointer(std::nullptr_t) noexcept : value() { } NullablePointer(std::nullptr_t) noexcept : value() { }
explicit operator bool() const noexcept { return value == nullptr; } explicit operator bool() const noexcept { return value != nullptr; }
friend inline bool friend inline bool
operator==(NullablePointer lhs, NullablePointer rhs) noexcept operator==(NullablePointer lhs, NullablePointer rhs) noexcept
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment