Skip to content

Commit b55b7eb

Browse files
committed
fix compiler error due to our own stricter assert() library logic, which requires an explicit boolean typed expression.
1 parent dae8f58 commit b55b7eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_weak_raw_ptr.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test_weak_ptr_becomes_null()
2525
{
2626
const auto a = new A();
2727
sigc::internal::weak_raw_ptr<A> raw_ptr(a);
28-
assert(raw_ptr);
28+
assert(bool(raw_ptr));
2929

3030
// Call something on A, via the weak_raw_ptr<>,
3131
// just to make sure that it doesn't get optimised away:

0 commit comments

Comments
 (0)