Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 59773 invoked from network); 16 Jun 2008 15:48:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jun 2008 15:48:30 -0000 Received: (qmail 75082 invoked by uid 500); 16 Jun 2008 15:48:32 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 75065 invoked by uid 500); 16 Jun 2008 15:48:32 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 75054 invoked by uid 99); 16 Jun 2008 15:48:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 08:48:32 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.roguewave.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 15:47:43 +0000 Received: from exchmail01.Blue.Roguewave.Com (exchmail01.blue.roguewave.com [10.22.129.22]) by moroha.roguewave.com (8.13.6/8.13.6) with ESMTP id m5GFk0SN002757 for ; Mon, 16 Jun 2008 15:46:00 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: svn commit: r667638 - /stdcxx/branches/4.3.x/tests/utilities/20.forward.cpp Date: Mon, 16 Jun 2008 09:45:40 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: svn commit: r667638 - /stdcxx/branches/4.3.x/tests/utilities/20.forward.cpp Thread-Index: AcjNk2KBUwrvVX/rRlqy6dZR4DHapACNFtqw References: <20080613202312.6E68F2388A0A@eris.apache.org> From: "Travis Vitek" To: X-Virus-Checked: Checked by ClamAV on apache.org I realize that this is a first 'draft', but I'll provide feedback now to Help things move along. elemings wrote: >=20 > + * > + * Copyright 1994-2008 Rogue Wave Software. > + *=20 >=20 The copyright is wrong. Martin has mentioned recently that the copyright can't start before the code in question was written. I believe it should be Copyright 2008 Rogue Wave Software, Inc. elemings wrote: >=20 > + > +static void > +test_identity () > +{ > + rw_info (0, __FILE__, __LINE__, "std::identity class template"); > + >=20 We ususally don't use the __FILE__ tag with code that is in the original test file. I'm not exactly sure why, but I don't recall ever seeing it used. Perhaps this is to reduce the amount of output generated in the output files? Another thing to note is that most of the stdcxx tests don't display anything other than the header when they run, unless something fails. AFAICT, the ones that do are those that have been migrated from perforce. In a recent change, Martin actually removed the informational messages from one test [http://tinyurl.com/6dg2xf] elemings wrote: >=20 > + int i =3D 1; > + FooIdent foo_ident; > + Foo foo =3D foo_ident (i); > + >=20 Shouldn't this check the signature of operator() and verifty that it returns the input parameter? elemings wrote: >=20 > + > +static int > +run_test (int /*unused*/, char* /*unused*/ []) > +{ >=20 We usually omit the parameter names entirely. I don't think I've ever seen any stdcxx code that comments them out. elemings wrote: >=20 > +#else // no rvalue references > + > + rw_info (true, __FILE__, __LINE__, > + "No compiler support for rvalue references; tests > disabled."); >=20 Shouldn't the first parameter be 0, which is consistent with the expected type of the first argument and will cause the informational message to always be displayed. It is also consistent with the other rw_info() calls you use in the same file. elemings wrote: >=20 > + > +#endif // !defined _RWSTD_NO_RVALUE_REFERENCES > + > + return 0; > +} > + > +/*extern*/ int > +main (int argc, char* argv []) > +{ > + return rw_test (argc, argv, __FILE__, > + "[forward]", "20.2.2 forward/move helpers", >=20 I think we use the name of the section of the standard being tested without the brackets. Also, we should avoid using the section number as it is likely to change with every revision of the standard. Travis