diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-06-06 10:23:38 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-06-06 10:23:38 +0200 |
commit | 9a4de67ddf1ce60fe8e56c00ee92e52593c09973 (patch) | |
tree | 3bc5fb24423c157eeecb398c31d9a39ab8d63795 /ACE/ace/Future.cpp | |
parent | 0c1250b0b20ca014faf977584a2586d787394ea2 (diff) | |
download | ATCD-9a4de67ddf1ce60fe8e56c00ee92e52593c09973.tar.gz |
All compilers we currently support throw on new so always define ACE_NEW_THROWS_EXCEPTIONS and removed code for the case it was not defined
* ACE/ace/Bound_Ptr.inl:
* ACE/ace/CORBA_macros.h:
* ACE/ace/Future.cpp:
* ACE/ace/OS_Memory.h:
* ACE/ace/README:
* ACE/ace/Refcounted_Auto_Ptr.inl:
* ACE/ace/config-all.h:
* ACE/ace/config-hpux-11.00.h:
* ACE/ace/config-icc-common.h:
* ACE/ace/config-integritySCA.h:
* ACE/ace/config-mqx.h:
* ACE/ace/config-openvms.h:
* ACE/tests/New_Fail_Test.cpp:
Diffstat (limited to 'ACE/ace/Future.cpp')
-rw-r--r-- | ACE/ace/Future.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ACE/ace/Future.cpp b/ACE/ace/Future.cpp index 7b4a37d414f..ebc89a7f2a0 100644 --- a/ACE/ace/Future.cpp +++ b/ACE/ace/Future.cpp @@ -86,12 +86,8 @@ ACE_Future_Rep<T>::create (void) { // Yes set ref count to zero. ACE_Future_Rep<T> *temp = internal_create (); -#if defined (ACE_NEW_THROWS_EXCEPTIONS) if (temp == 0) ACE_throw_bad_alloc; -#else - ACE_ASSERT (temp != 0); -#endif /* ACE_NEW_THROWS_EXCEPTIONS */ return temp; } |