summaryrefslogtreecommitdiff
path: root/ace/OS_Memory.h
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2004-09-29 21:52:46 +0000
committerSteve Huston <shuston@riverace.com>2004-09-29 21:52:46 +0000
commite9e9736c4bb6c76c53b3c5de3fd1365e5348596b (patch)
treec015e7aa9d9beb2dd48c054d612a2f9dbe9b97c6 /ace/OS_Memory.h
parentece762820f257333fcfb8e928dfc9f321e886e38 (diff)
downloadATCD-e9e9736c4bb6c76c53b3c5de3fd1365e5348596b.tar.gz
ChangeLogTag:Wed Sep 29 17:50:27 2004 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/OS_Memory.h')
-rw-r--r--ace/OS_Memory.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ace/OS_Memory.h b/ace/OS_Memory.h
index 11f1371e521..f1b3cbc2659 100644
--- a/ace/OS_Memory.h
+++ b/ace/OS_Memory.h
@@ -69,6 +69,13 @@ typedef void *ACE_MALLOC_T;
// being used).
// ============================================================================
+// If new(std::nothrow) is defined then, by definition, new throws exceptions.
+#if defined (ACE_HAS_NEW_NOTHROW)
+# if !defined (ACE_NEW_THROWS_EXCEPTIONS)
+# define ACE_NEW_THROWS_EXCEPTIONS
+# endif
+#endif
+
#if defined (ACE_NEW_THROWS_EXCEPTIONS)
// Since new() throws exceptions, we need a way to avoid passing