Make assign illegal for class
- From: "Mark Randall" <markyr@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 20 Aug 2005 21:05:20 +0100
Hi,
Is there any way to explicitly make = or copy construction illegal for a
given class? I have several that are most complex and will at no point ever
need to be copied.
For integrity purposes, is there any way to disable the copy all together
and generate a warning? (I was thinking of having a home made copy
constructor but I have no idea about generating a compile error inside it).
--
- Mark Randall
http://zetech.swehli.com
.
- Follow-Ups:
- Re: Make assign illegal for class
- From: Stu Smith
- Re: Make assign illegal for class
- From: Alex Blekhman
- Re: Make assign illegal for class
- From: Doug Harrison [MVP]
- Re: Make assign illegal for class
- Prev by Date: Re: std::vector<CString> to LPCTSTR *
- Next by Date: Re: Make assign illegal for class
- Previous by thread: std::vector<CString> to LPCTSTR *
- Next by thread: Re: Make assign illegal for class
- Index(es):
Relevant Pages
|