Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 77920 invoked from network); 17 Feb 2006 16:13:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Feb 2006 16:13:15 -0000 Received: (qmail 46124 invoked by uid 500); 17 Feb 2006 16:13:15 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 46106 invoked by uid 500); 17 Feb 2006 16:13:14 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 46070 invoked by uid 99); 17 Feb 2006 16:13:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2006 08:13:14 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [12.17.213.84] (HELO bco-exchange.bco.roguewave.com) (12.17.213.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2006 08:13:13 -0800 Received: from [10.70.3.113] (10.70.3.113 [10.70.3.113]) by bco-exchange.bco.roguewave.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id ZGW28YDK; Fri, 17 Feb 2006 09:12:43 -0700 Message-ID: <43F5F704.7040000@roguewave.com> Date: Fri, 17 Feb 2006 09:17:08 -0700 From: Martin Sebor User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: test for lib.set.intersection References: <43F4A426.9050001@moscow.vdiweb.com> In-Reply-To: <43F4A426.9050001@moscow.vdiweb.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Anton Pevtsov wrote: > The attached file contains the test for the lib.set.intersection > algorithm. Thank you. Committed thus: http://svn.apache.org/viewcvs.cgi?rev=378555&view=rev [...] > struct SetIntersectionTestBase > { > virtual ~SetIntersectionTestBase() {} > > const char* iter_names [3]; > > // invokes set_intersection > virtual X* > set_intersection (const X*, const X*, const X*, const X*, > X*, X*, const Less*) const { > RW_ASSERT (!"test logic error"); FYI: there is no need to provide a definition for a virtual function in the base class as long as it is overridden in the base class. In cases when the function must be overridden it's better to make it pure virtual. (The reason 25.merge.cpp does define the virtual functions in the base rather than make them pure is because each derived class overrides only one of the two functions; the one that is not overridden is not called on the object that doesn't override it). Martin