On Fri, 3 Oct 2003 10:38:21 +0200 (CEST) Robert Vazan <[EMAIL PROTECTED]> wrote:

RV> There must be call to delete operator somewhere. As shared_ptr is template,
RV> delete call must be generated at point of instantiation. What they probably
RV> mean is that merely declaring member variable of shared_ptr type doesn't
RV> require complete type of template parameter. But local and temporary
RV> variables call destructor and this pulls in delete operator.

 Yes, indeed. But this must always be like this, calling delete on an
incomplete type is undefined behaviour...

RV> I think I can write VC6-compatible code without too much work.

 If you stick to simple templates it should be ok. Don't use function
templates (support for them is too buggy) nor member templates (even
worse).

RV> BTW, we will probably have to drop XXX_obj naming, because it requires
RV> typedef-ing template instance and such typedefs cannot be duplicated in
RV> headers. It shouldn't be that big problem to write RefCounter<XXX>
RV> everywhere.

 Ok...

 Thanks,
VZ



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to