make_shared should work with nontrivial objects

This commit is contained in:
Steven Dee (Jōshin) 2024-09-14 20:25:22 -07:00
parent 675abfa029
commit a4d7876d71
No known key found for this signature in database

View file

@ -147,6 +147,10 @@ class shared_emplace : public shared_ref
T t;
};
~shared_emplace() override
{
}
template<typename... Args>
void construct(Args&&... args)
{
@ -159,7 +163,9 @@ class shared_emplace : public shared_ref
}
private:
explicit constexpr shared_emplace() noexcept = default;
explicit constexpr shared_emplace() noexcept
{
}
void dispose() noexcept override
{