C
Chris Peters
Hi,
I want to make the delete() operator private for my class - I'm using
reference counts, so I want to force users of my class to call my function
rather than being able to delete and confuse the reference counter. But
allocating memory with new() is OK.
On VC++6 this works fine, but on VC++.NET it generates an error that
making delete private causes memory leakage.
Any advice?
Thanks.
I want to make the delete() operator private for my class - I'm using
reference counts, so I want to force users of my class to call my function
rather than being able to delete and confuse the reference counter. But
allocating memory with new() is OK.
On VC++6 this works fine, but on VC++.NET it generates an error that
making delete private causes memory leakage.
Any advice?
Thanks.