feat/support_fiber #6

Merged
tqcq merged 52 commits from feat/support_fiber into master 2024-08-11 13:03:04 +08:00
Showing only changes of commit 9bd627ea6c - Show all commits

View File

@ -17,6 +17,12 @@ make_unique(Args &&...args) {
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
template <typename T, typename... Args>
inline enable_if_t<!std::is_array<T>::value, std::unique_ptr<T>>
make_unique(T *ptr) {
return std::unique_ptr<T>(ptr);
}
// dynamic array
template <typename T>
inline enable_if_t<std::is_array<T>::value && std::extent<T>::value == 0,