Boost logo

Boost Users :

Subject: [Boost-users] [shared_ptr] Can the custom deleter be a simple function?
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2011-11-06 15:52:58


The shared_ptr docs suggest that a smart pointer employing a null deleter
can be
implemented using a functor. Why prefer a functor to a function?

Thx,

- Rob.



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