mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-03 08:20:28 +00:00
Uncomment shared_ptr<void> test
This commit is contained in:
parent
f7178894ee
commit
3c88e616b0
2 changed files with 3 additions and 3 deletions
|
@ -258,6 +258,9 @@ class shared_ptr
|
|||
{
|
||||
}
|
||||
|
||||
template <typename U, typename E>
|
||||
friend class shared_ptr;
|
||||
|
||||
template<typename U, typename... Args>
|
||||
friend shared_ptr<U> make_shared(Args&&... args);
|
||||
|
||||
|
|
|
@ -62,15 +62,12 @@ main()
|
|||
return 5;
|
||||
}
|
||||
|
||||
// TODO(mrdomino):
|
||||
#if 0
|
||||
{
|
||||
Ptr<int> x(new int);
|
||||
Ptr<void> y(x, nullptr);
|
||||
if (x.use_count() != 2)
|
||||
return 7;
|
||||
}
|
||||
#endif
|
||||
|
||||
{
|
||||
auto x = Mk<int>(5);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue