Skip to content

Commit

Permalink
explicitly delete the release method (closes #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
KRM7 committed Feb 7, 2024
1 parent c660fe0 commit 571c51d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/small_unique_ptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ class small_unique_ptr : private detail::small_unique_ptr_base<T>
}
}

[[nodiscard]]
pointer release() noexcept = delete;

[[nodiscard]]
constexpr static bool is_always_heap_allocated() noexcept
{
Expand Down

0 comments on commit 571c51d

Please sign in to comment.