Dear Bagaskoro Kang,
I apologize, I thought my previous message got the example through to
you, but it seems like it did not. Here is the example using out_ptr to do
what you describe:
struct SizedDeleter {
size_t size = 0;
void operator()(Interface* obj) const {
DeleteBusInterface(obj, size);
}
};
using bop = boost::out_ptr;
size_t& size_ref = p_obj.get_deleter().size;
std::unique_ptr