mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-03 16:30:29 +00:00
Fix build
This commit is contained in:
parent
7804e1a596
commit
1c5401a141
2 changed files with 5 additions and 0 deletions
|
@ -193,12 +193,15 @@ class shared_ptr
|
|||
{
|
||||
}
|
||||
|
||||
// TODO(mrdomino): blocked on ctl::ref
|
||||
#if 0
|
||||
template<typename U, typename D>
|
||||
requires is_convertible_v<U, T>
|
||||
shared_ptr(unique_ptr<U, D>&& r)
|
||||
: p(r.p), rc(__::shared_pointer<U, D>::make(r.release(), r.get_deleter()))
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
~shared_ptr()
|
||||
{
|
||||
|
|
|
@ -155,6 +155,7 @@ main()
|
|||
return 9;
|
||||
}
|
||||
|
||||
#if 0
|
||||
{
|
||||
g = 0;
|
||||
// You can create a shared_ptr from a unique_ptr.
|
||||
|
@ -166,6 +167,7 @@ main()
|
|||
if (g != 1)
|
||||
return 11;
|
||||
}
|
||||
#endif
|
||||
|
||||
{
|
||||
g = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue