From 3c88e616b0cebcda11597c99ef441a98320a7181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven=20Dee=20=28J=C5=8Dshin=29?= Date: Mon, 26 Aug 2024 21:13:34 -0700 Subject: [PATCH] Uncomment shared_ptr test --- ctl/shared_ptr.h | 3 +++ test/ctl/shared_ptr_test.cc | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ctl/shared_ptr.h b/ctl/shared_ptr.h index ed33a3a98..d3b7396ee 100644 --- a/ctl/shared_ptr.h +++ b/ctl/shared_ptr.h @@ -258,6 +258,9 @@ class shared_ptr { } + template + friend class shared_ptr; + template friend shared_ptr make_shared(Args&&... args); diff --git a/test/ctl/shared_ptr_test.cc b/test/ctl/shared_ptr_test.cc index 46d76504c..a3fc00359 100644 --- a/test/ctl/shared_ptr_test.cc +++ b/test/ctl/shared_ptr_test.cc @@ -62,15 +62,12 @@ main() return 5; } - // TODO(mrdomino): -#if 0 { Ptr x(new int); Ptr y(x, nullptr); if (x.use_count() != 2) return 7; } -#endif { auto x = Mk(5);