>  remove my deleteSelf hack (there is a
> >test case that shows it shouldn't be needed - and the standard says it's
> >not needed). 

I've done this... please try now.

> Or we can const_cast the pointers before deleting. I'd like
> >to get rid of the deleteSelf hack...
> 
> OK, please do you can give some hints, for me C++ is still an "alien" language.

Well, for casting:
void 
Foo::deleteSelf() const
{
   delete const_cast<Foo *>(this);
}

> Index: auth_digest.cc

Committed.

> > > store_dir_ufs.cc
> > > C:\work\nt-3.0\src\fs\ufs\store_dir_ufs.cc(1018) : error C2664:
> > > 'file_write' : cannot convert parameter 7 from 'void (void *)' to 'void
> > > (__cdecl *)(void *)'
> > >          None of the functions with this name in scope match the target 
> > type
> >
> >try adding an explicit cast to (__cdecl *)(void *) on the NULL.
> 
> Nothing to do, don't liked .....

Can you enlarge on this?

Cheers,
Rob
-- 
GPG key available at: <http://members.aardvark.net.au/lifeless/keys.txt>.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to