stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r384681 - /incubator/stdcxx/trunk/tests/strings/21.string.capacity.cpp
Date Fri, 10 Mar 2006 02:36:22 GMT
Author: sebor
Date: Thu Mar  9 18:36:20 2006
New Revision: 384681

URL: http://svn.apache.org/viewcvs?rev=384681&view=rev
Log:
2006-03-09  Martin Sebor  <sebor@roguewave.com>

	* 21.string.capacity.cpp (test_capacity): Changed Traits argument from
	by-value to a pointer to avoid making assumptions about Traits object
	being constructible.

Modified:
    incubator/stdcxx/trunk/tests/strings/21.string.capacity.cpp

Modified: incubator/stdcxx/trunk/tests/strings/21.string.capacity.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/strings/21.string.capacity.cpp?rev=384681&r1=384680&r2=384681&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/strings/21.string.capacity.cpp (original)
+++ incubator/stdcxx/trunk/tests/strings/21.string.capacity.cpp Thu Mar  9 18:36:20 2006
@@ -2,7 +2,7 @@
  *
  * 21.string.capacity.cpp - test exercising [lib.string.capacity]
  *
- * $Id:
+ * $Id$
  *
  ***************************************************************************
  *
@@ -185,7 +185,7 @@
 /**************************************************************************/
 
 template <class charT, class Traits>
-void test_capacity (charT, Traits, const MemFun *pfid,
+void test_capacity (charT, Traits*, const MemFun *pfid,
                     int         line,         // line number
                     const char *str,          // string argument
                     std::size_t str_len,      // the string length
@@ -351,7 +351,7 @@
 {
 #undef TEST
 #define TEST(charT, Traits)                                             \
-    test_capacity (charT (), Traits (), pfid, line,                     \
+    test_capacity (charT (), (Traits*)0, pfid, line,                    \
                    str, str_len, nparam, cparam, res, should_throw)
 
     static const char* const fnames[] = {



Mime
View raw message