You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2006/05/17 03:50:10 UTC

svn commit: r407121 - /incubator/stdcxx/trunk/tests/src/allocator.cpp

Author: sebor
Date: Tue May 16 18:50:10 2006
New Revision: 407121

URL: http://svn.apache.org/viewcvs?rev=407121&view=rev
Log:
2006-05-16  Martin Sebor  <se...@roguewave.com>

	* allocator.cpp (<rw_new.h>): Included for operator_new() and
	operator_delete().
	(allocate, deallocate): Called the operator_new() and operator_delete()
	implementation functions instead of invoking the operators directly.

Modified:
    incubator/stdcxx/trunk/tests/src/allocator.cpp

Modified: incubator/stdcxx/trunk/tests/src/allocator.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/src/allocator.cpp?rev=407121&r1=407120&r2=407121&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/src/allocator.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/allocator.cpp Tue May 16 18:50:10 2006
@@ -29,7 +29,8 @@
 #define _RWSTD_TEST_SRC
 
 #include <rw_allocator.h>
-#include <new>              // for bad_alloc
+#include <rw_new.h>         // for operator_new()
+#include <new>              // for bad_alloc, placement new
 #include <stdarg.h>         // for va_arg(), va_list
 #include <string.h>         // for memset()
 
@@ -118,7 +119,7 @@
                              "allocate (%zu):  reached size limit of %zu",
                              nbytes, max_bytes_);
 
-    return operator new (nbytes);
+    return operator_new (nbytes, false);
 }
 
 
@@ -127,7 +128,7 @@
 {
     funcall (m_deallocate);
 
-    return operator delete (ptr);
+    return operator_delete (ptr, false);
 }