Delete a pointer safely. More...
Delete a pointer safely.
Any depth of pointers-to-pointers (up to maximum template recursion) can be passed to this struct. The type of the pointee is deduced and passed to boost::checked_deleter, which ensures that the type is fully known at the point of deletion. It does not, of course, check that the pointer was allocated with new, so this isn't completely idiot-proof.