
22 Dec
2009
22 Dec
'09
1:07 p.m.
Andreas Rönnquist wrote:
Thanks guys (both Robert and Steven) - I managed to work my way around it by providing a null_deleter of my own:
template<typename T> struct null_deleter { void operator()(T *) const {} };
This is what I was going to suggest :-) but you may find one of the following null deleters better: struct null_deleter { template<class T> void operator()(T *) const {} }; struct null_deleter { void operator()(void const *) const {} };