|
|
@@ -106,7 +106,7 @@ struct allocation_deleter: private Allocator {
|
|
|
* @return A properly initialized unique pointer with a custom deleter.
|
|
|
*/
|
|
|
template<typename Type, typename Allocator, typename... Args>
|
|
|
-ENTT_CONSTEXPR auto allocate_unique(Allocator &allocator, Args &&...args) {
|
|
|
+constexpr auto allocate_unique(Allocator &allocator, Args &&...args) {
|
|
|
static_assert(!std::is_array_v<Type>, "Array types are not supported");
|
|
|
|
|
|
using alloc_traits = typename std::allocator_traits<Allocator>::template rebind_traits<Type>;
|