|
Boost Users : |
Subject: Re: [Boost-users] boost::serialization::null_deleter
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-12-22 08:07:20
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 {}
};
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net