diff options
Diffstat (limited to 'ACE/examples')
-rw-r--r-- | ACE/examples/DLL/Newsweek.cpp | 2 | ||||
-rw-r--r-- | ACE/examples/DLL/Newsweek.h | 2 | ||||
-rw-r--r-- | ACE/examples/DLL/Today.cpp | 2 | ||||
-rw-r--r-- | ACE/examples/DLL/Today.h | 2 | ||||
-rw-r--r-- | ACE/examples/Shared_Malloc/test_persistence.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/ACE/examples/DLL/Newsweek.cpp b/ACE/examples/DLL/Newsweek.cpp index a76a56d459e..52797d8ad4f 100644 --- a/ACE/examples/DLL/Newsweek.cpp +++ b/ACE/examples/DLL/Newsweek.cpp @@ -24,7 +24,7 @@ Newsweek::operator new (size_t bytes, const std::nothrow_t&) return ::new (std::nothrow) char[bytes]; } void -Newsweek::operator delete (void *p, const std::nothrow_t&) throw () +Newsweek::operator delete (void *p, const std::nothrow_t&) noexcept { delete [] static_cast <char *> (p); } diff --git a/ACE/examples/DLL/Newsweek.h b/ACE/examples/DLL/Newsweek.h index dad7ce52fdb..aafce40e002 100644 --- a/ACE/examples/DLL/Newsweek.h +++ b/ACE/examples/DLL/Newsweek.h @@ -43,7 +43,7 @@ public: void *operator new (size_t bytes); // Overloaded new operator, nothrow_t variant. void *operator new (size_t bytes, const std::nothrow_t&); - void operator delete (void *p, const std::nothrow_t&) throw (); + void operator delete (void *p, const std::nothrow_t&) noexcept; void operator delete (void *ptr); }; diff --git a/ACE/examples/DLL/Today.cpp b/ACE/examples/DLL/Today.cpp index 66724929970..6ce81930b13 100644 --- a/ACE/examples/DLL/Today.cpp +++ b/ACE/examples/DLL/Today.cpp @@ -25,7 +25,7 @@ Today::operator new (size_t bytes, const std::nothrow_t&) return ::new (std::nothrow) char[bytes]; } void -Today::operator delete (void *p, const std::nothrow_t&) throw () +Today::operator delete (void *p, const std::nothrow_t&) noexcept { delete [] static_cast <char *> (p); } diff --git a/ACE/examples/DLL/Today.h b/ACE/examples/DLL/Today.h index b59fb1ff505..6201236e78a 100644 --- a/ACE/examples/DLL/Today.h +++ b/ACE/examples/DLL/Today.h @@ -44,7 +44,7 @@ public: void *operator new (size_t bytes); // Overloaded new operator, nothrow_t variant. void *operator new (size_t bytes, const std::nothrow_t&); - void operator delete (void *p, const std::nothrow_t&) throw (); + void operator delete (void *p, const std::nothrow_t&) noexcept; void operator delete (void *ptr); }; diff --git a/ACE/examples/Shared_Malloc/test_persistence.cpp b/ACE/examples/Shared_Malloc/test_persistence.cpp index 058305ce9b3..c57544b1d9b 100644 --- a/ACE/examples/Shared_Malloc/test_persistence.cpp +++ b/ACE/examples/Shared_Malloc/test_persistence.cpp @@ -63,7 +63,7 @@ public: { return shmem_allocator->malloc (sizeof (Employee)); } - void operator delete (void *p, const std::nothrow_t&) throw () + void operator delete (void *p, const std::nothrow_t&) noexcept { shmem_allocator->free (p); } |