aboutsummaryrefslogtreecommitdiffstats
path: root/src/bindings/eina_cxx/eina_clone_allocators.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/eina_cxx/eina_clone_allocators.hh')
-rw-r--r--src/bindings/eina_cxx/eina_clone_allocators.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bindings/eina_cxx/eina_clone_allocators.hh b/src/bindings/eina_cxx/eina_clone_allocators.hh
index 824d6d6ce9..76ff620f98 100644
--- a/src/bindings/eina_cxx/eina_clone_allocators.hh
+++ b/src/bindings/eina_cxx/eina_clone_allocators.hh
@@ -154,7 +154,8 @@ struct malloc_clone_allocator
template <typename T>
static void deallocate_clone(T const* p)
{
- static_assert(std::is_pod<T>::value, "malloc_clone_allocator can only be used with POD types");
+ static_assert(std::is_pod<T>::value || std::is_void<T>::value
+ , "malloc_clone_allocator can only be used with POD types");
std::free(const_cast<T*>(p));
}
};