Uncomment shared_ptr<void> test

This commit is contained in:
Steven Dee (Jōshin) 2024-08-26 21:13:34 -07:00
parent f7178894ee
commit 3c88e616b0
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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);