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*)>
|
template <typename T, typename U, void (U::*F)(T*)>
|
||||||
class object_deleter {
|
class object_deleter {
|
||||||
public:
|
public:
|
||||||
static_assert (F != nullptr, "destroy function must be non-null");
|
|
||||||
|
|
||||||
object_deleter (U &owner):
|
object_deleter (U &owner):
|
||||||
m_owner (owner)
|
m_owner (owner)
|
||||||
{ ; }
|
{ ; }
|
||||||
|
Loading…
Reference in New Issue
Block a user