memory/deleter: remove nullptr callback restriction

if you want to pass in null then it's your head...
This commit is contained in:
Danny Robson 2015-11-19 15:04:19 +11:00
parent 873997fa33
commit 37268d6215

View File

@ -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)
{ ; }