From f727bc94432905d79af23cf0aef14854965da2cd Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 4 Feb 2022 09:46:55 -0500 Subject: PointerHolder: add get() and use_count() for forward compatibility PointerHolder will be replaced with shared_ptr, so let people start moving. --- libtests/qtest/ph/ph.out | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'libtests/qtest') diff --git a/libtests/qtest/ph/ph.out b/libtests/qtest/ph/ph.out index 5d249712..a7efe1bb 100644 --- a/libtests/qtest/ph/ph.out +++ b/libtests/qtest/ph/ph.out @@ -10,17 +10,23 @@ destroyed Object, id 2 equal okay less than okay created Object, id 3 +created Object, id 4 +calling Object::hello const for 4 +destroyed Object, id 4 +calling Object::hello for 1 +calling Object::hello for 1 +calling Object::hello for 1 +calling Object::hello for 1 calling Object::hello for 1 calling Object::hello for 1 calling Object::hello for 1 -calling Object::hello const for 1 calling Object::hello const for 1 calling Object::hello const for 1 array -created Object, id 4 created Object, id 5 +created Object, id 6 goodbye +destroyed Object, id 6 destroyed Object, id 5 -destroyed Object, id 4 destroyed Object, id 3 destroyed Object, id 1 -- cgit v1.2.3-70-g09d2