Make assign illegal for class



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


.



Relevant Pages

  • word starts>"compile error in hidden module. main module" fix it?
    ... When Word starts a box appears warning that "a compile error in hidden ... I need to locate this and fix it if I can. ... Prev by Date: ...
    (microsoft.public.word.application.errors)
  • RE: Adding info to query
    ... it sort of makes sense now. ... > compile error. ... >>> also, what if the first record is empty, there will be no previous record. ... Prev by Date: ...
    (microsoft.public.access.queries)
  • dsniff and Suse 9.2
    ... I'm getting the following compile error: ... arpspoof.c:60: warning: passing arg 6 of `libnet_build_ethernet' from ... arpspoof.c:64: error: (Each undeclared identifier is reported only ...
    (comp.os.linux.misc)
  • dsniff and Suse 9.2
    ... I'm getting the following compile error: ... arpspoof.c:60: warning: passing arg 6 of `libnet_build_ethernet' from ... arpspoof.c:64: error: (Each undeclared identifier is reported only ...
    (alt.os.linux.suse)
  • TEA crypto in 2.4: undefined MODULE_ALIAS
    ... I get this compile error: ... tea.c:242: warning: type defaults to `int' in declaration of `MODULE_ALIAS' ... tea.c:242: warning: data definition has no type or storage class ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)