diff --git a/source/mijin/memory/memutil.hpp b/source/mijin/memory/memutil.hpp index 3291194..bb4598e 100644 --- a/source/mijin/memory/memutil.hpp +++ b/source/mijin/memory/memutil.hpp @@ -20,7 +20,8 @@ private: [[no_unique_address]] TAllocator allocator_; public: - explicit AllocatorDeleter(TAllocator allocator = {}) MIJIN_NOEXCEPT_IF(std::is_nothrow_move_constructible_v) + AllocatorDeleter() = default; + explicit AllocatorDeleter(TAllocator allocator) MIJIN_NOEXCEPT_IF(std::is_nothrow_move_constructible_v) : allocator_(std::move(allocator)) {} template requires (std::is_constructible_v) @@ -69,6 +70,10 @@ class AllocatorDeleter> { public: AllocatorDeleter() noexcept = default; + + template + AllocatorDeleter(std::allocator) noexcept {} + template AllocatorDeleter(const AllocatorDeleter>&) noexcept {}