stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r585460 - /incubator/stdcxx/trunk/tests/utilities/20.auto.ptr.cpp
Date Wed, 17 Oct 2007 12:37:23 GMT
Author: faridz
Date: Wed Oct 17 05:37:22 2007
New Revision: 585460

URL: http://svn.apache.org/viewvc?rev=585460&view=rev
Log:
2007-10-17 Travis Vitek <vitek@roguewave.com>

	STDCXX-601
	* utilities/20.auto.ptr (test_auto_ptr): Ensure allocated
	object is value-initialized to avoid uninitialized memory
	read error.

Modified:
    incubator/stdcxx/trunk/tests/utilities/20.auto.ptr.cpp

Modified: incubator/stdcxx/trunk/tests/utilities/20.auto.ptr.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/utilities/20.auto.ptr.cpp?rev=585460&r1=585459&r2=585460&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/utilities/20.auto.ptr.cpp (original)
+++ incubator/stdcxx/trunk/tests/utilities/20.auto.ptr.cpp Wed Oct 17 05:37:22 2007
@@ -223,7 +223,7 @@
 
     rw_info (0, 0, 0, "[lib.auto.ptr.cons]");
 
-    T *pt = new T;
+    T *pt = new T ();
 
     // 20.4.5.1, p1
     std::auto_ptr<T> ap1 (pt);



Mime
View raw message