stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r641324 - /stdcxx/trunk/tests/regress/21.string.append.stdcxx-438.cpp
Date Wed, 26 Mar 2008 14:29:27 GMT
Author: faridz
Date: Wed Mar 26 07:29:17 2008
New Revision: 641324

URL: http://svn.apache.org/viewvc?rev=641324&view=rev
Log:
2008-03-26  Farid Zaripov  <farid_zaripov@epam.com>

	* tests/regress/21.string.append.stdcxx-438.cpp: Don't define the replacement
	operators new and delete on compilers, that can't reliably replace the operators.

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

Modified: stdcxx/trunk/tests/regress/21.string.append.stdcxx-438.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/regress/21.string.append.stdcxx-438.cpp?rev=641324&r1=641323&r2=641324&view=diff
==============================================================================
--- stdcxx/trunk/tests/regress/21.string.append.stdcxx-438.cpp (original)
+++ stdcxx/trunk/tests/regress/21.string.append.stdcxx-438.cpp Wed Mar 26 07:29:17 2008
@@ -33,6 +33,9 @@
 #include <new>
 #include <string>
 
+#ifndef _RWSTD_NO_REPLACEABLE_NEW_DELETE
+   // disabled for compilers that can't reliably replace the operators
+
 void* operator new (std::size_t n) throw (std::bad_alloc)
 {
     void* const ptr = std::malloc (n + sizeof n);
@@ -48,6 +51,8 @@
         std::free ((std::size_t*)ptr - 1);
     }
 }
+
+#endif   // _RWSTD_NO_REPLACEABLE_NEW_DELETE
 
 struct InputIterator: std::iterator<std::input_iterator_tag, char>
 {



Mime
View raw message