memory/deleter: remove nullptr callback restriction
if you want to pass in null then it's your head...
This commit is contained in:
parent
873997fa33
commit
37268d6215
@ -21,8 +21,6 @@ namespace util { namespace memory {
|
||||
template <typename T, typename U, void (U::*F)(T*)>
|
||||
class object_deleter {
|
||||
public:
|
||||
static_assert (F != nullptr, "destroy function must be non-null");
|
||||
|
||||
object_deleter (U &owner):
|
||||
m_owner (owner)
|
||||
{ ; }
|
||||
|
Loading…
Reference in New Issue
Block a user