
11 Oct
2009
11 Oct
'09
7:26 p.m.
Peter Dimov wrote:
You need boost::bind( &CTNGenerator::makeCTNAvailable, this, _1 ). bind will automatically insert the mem_fn for you. Being a member function, makeCTNAvailable takes two arguments: the hidden 'this' and 'ctn'. _1 routes the pointer argument of the deleter into its proper position as 'ctn'. Thanks everyone for your suggestions. I was able to get the class behaving correctly by using Peter's solution.
Ryan