Fix build

This commit is contained in:
Steven Dee (Jōshin) 2024-08-27 21:09:53 -07:00
parent 7804e1a596
commit 1c5401a141
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View file

@ -193,12 +193,15 @@ class shared_ptr
{ {
} }
// TODO(mrdomino): blocked on ctl::ref
#if 0
template<typename U, typename D> template<typename U, typename D>
requires is_convertible_v<U, T> requires is_convertible_v<U, T>
shared_ptr(unique_ptr<U, D>&& r) shared_ptr(unique_ptr<U, D>&& r)
: p(r.p), rc(__::shared_pointer<U, D>::make(r.release(), r.get_deleter())) : p(r.p), rc(__::shared_pointer<U, D>::make(r.release(), r.get_deleter()))
{ {
} }
#endif
~shared_ptr() ~shared_ptr()
{ {

View file

@ -155,6 +155,7 @@ main()
return 9; return 9;
} }
#if 0
{ {
g = 0; g = 0;
// You can create a shared_ptr from a unique_ptr. // You can create a shared_ptr from a unique_ptr.
@ -166,6 +167,7 @@ main()
if (g != 1) if (g != 1)
return 11; return 11;
} }
#endif
{ {
g = 0; g = 0;