From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6277 invoked by alias); 26 Sep 2005 11:21:30 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 5536 invoked by uid 22791); 26 Sep 2005 11:20:49 -0000 Received: from exprod6og4.obsmtp.com (HELO psmtp.com) (64.18.1.124) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Mon, 26 Sep 2005 11:20:49 +0000 Received: from source ([192.150.11.134]) by exprod6ob4.obsmtp.com ([64.18.5.12]) with SMTP; Mon, 26 Sep 2005 04:20:45 PDT Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id j8QBDYBM018922; Mon, 26 Sep 2005 04:13:35 -0700 (PDT) Received: from fe2.corp.adobe.com (fe2.corp.adobe.com [10.8.192.72]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id j8QBKYn2002080; Mon, 26 Sep 2005 04:20:34 -0700 (PDT) Received: from namail3.corp.adobe.com ([10.8.192.66]) by fe2.corp.adobe.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 26 Sep 2005 04:20:34 -0700 Received: from 10.32.16.88 ([10.32.16.88]) by namail3.corp.adobe.com ([10.8.192.66]) via Exchange Front-End Server namailhost.corp.adobe.com ([10.8.192.72]) with Microsoft Exchange Server HTTP-DAV ; Mon, 26 Sep 2005 11:20:33 +0000 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Mon, 26 Sep 2005 11:21:00 -0000 Subject: Re: C++ operators in gcc From: John Love-Jensen To: Tommy Vercetti , MSX to GCC Message-ID: In-Reply-To: <200509232348.08931@gj-laptop> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-SW-Source: 2005-09/txt/msg00179.txt.bz2 Hi Tommy, In C++, every class some freebies. If you write this... class Foo { }; ...the compiler generates this... class Foo { public: Foo(); Foo(Foo const&); ~Foo(); Foo& operator = (Foo const&); Foo* operator & (); Foo const* operator & () const; }; (I presume the definitions of these methods are obvious.) If you don't want the compiler to generate one-or-more of those functions, you could explicitly declare them in a private section, and leave them unimplemented. HTH, --Eljay