constexpr make_unique

This commit is contained in:
Steven Dee (Jōshin) 2024-06-19 06:19:09 -07:00
parent 5faa879419
commit d29f73e2d3
No known key found for this signature in database

View file

@ -144,14 +144,14 @@ struct unique_ptr
}; };
template<typename T, typename... Args> template<typename T, typename... Args>
unique_ptr<T> constexpr unique_ptr<T>
make_unique(Args&&... args) make_unique(Args&&... args)
{ {
return unique_ptr<T>(new T(ctl::forward<Args>(args)...)); return unique_ptr<T>(new T(ctl::forward<Args>(args)...));
} }
template<typename T> template<typename T>
unique_ptr<T> constexpr unique_ptr<T>
make_unique_for_overwrite() make_unique_for_overwrite()
{ {
#if 0 #if 0