From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FORGED_MUA_MOZILLA,FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,66fae8c862b81b17 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.80.98 with SMTP id q2mr1431682pax.33.1351914477192; Fri, 02 Nov 2012 20:47:57 -0700 (PDT) Path: s9ni77237pbb.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 02 Nov 2012 22:47:56 -0500 Date: Fri, 02 Nov 2012 23:47:56 -0400 From: "Peter C. Chapin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Copy vector in Ada References: <1aWdnbcg_8-BzAzNnZ2dnUVZ_j6dnZ2d@giganews.com> <559eb706-9bb1-496d-9034-1984d693531a@googlegroups.com> <5460fdc7-5490-4889-b771-67cc281c10c5@googlegroups.com> In-Reply-To: Message-ID: X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-hP4bWFdRsF3Y/Zgsn4sWHaAhVymODghFYcluHFAum1Ij89S+7V0uqBAztlLZbGVR1ClyurdaRRUaE5t!rlNCnOild0Ru1z+VhwmFrnGT4P/CjoZrTNVAmmitwk1DYWoRwiDJtYP224qiZe0= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1794 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-11-02T23:47:56-04:00 List-Id: On 11/02/2012 08:15 PM, Zhu, Qun-Ying wrote: > I think it is a C++11 feature. You can disable copying in a class in C++ 1998 by declaring the copy constructor and operator=() as private. You don't need to provide an implementation. The annoying thing about that is you could still try to use them inside the class's methods and you don't get an error about that until link-time. C++ 2011 has a cleaner way of doing it. Peter