You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by vi...@apache.org on 2008/02/02 18:42:19 UTC

svn commit: r617841 - /stdcxx/trunk/tests/regress/21.string.stdcxx-231.cpp

Author: vitek
Date: Sat Feb  2 09:42:17 2008
New Revision: 617841

URL: http://svn.apache.org/viewvc?rev=617841&view=rev
Log:

2008-02-02  Travis Vitek  <vi...@roguewave.com>

	* tests/regress/21.string.stdcxx-231.cpp: Fix compile error.


Modified:
    stdcxx/trunk/tests/regress/21.string.stdcxx-231.cpp

Modified: stdcxx/trunk/tests/regress/21.string.stdcxx-231.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/regress/21.string.stdcxx-231.cpp?rev=617841&r1=617840&r2=617841&view=diff
==============================================================================
--- stdcxx/trunk/tests/regress/21.string.stdcxx-231.cpp (original)
+++ stdcxx/trunk/tests/regress/21.string.stdcxx-231.cpp Sat Feb  2 09:42:17 2008
@@ -32,8 +32,8 @@
 {
     std::string s (100, 's');
 
-    const size_t n = s.capacity ();
-    const char*  p = s.c_str ();
+    const std::string::size_type n = s.capacity ();
+    const std::string::const_pointer p = s.c_str ();
 
     // verify getline(), clear(), erase() and replace() do not
     // unnecessarily resize or reallocate the data buffer