#ifndef EINA_DELETERS_HH_ #define EINA_DELETERS_HH_ #include #include namespace efl { namespace eina { struct malloc_deleter { template void operator()(T* object) const { object->~T(); free(object); } void operator()(Eina_Future*) const { // workaround until we substitute Efl_Future with Eina_Future } void operator()(Eina_Binbuf* /*object*/) const { // how to free binbuf? } }; template using unique_malloc_ptr = std::unique_ptr; } } #endif