summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2022-12-12 12:36:50 +0100
committerGitHub <noreply@github.com>2022-12-12 12:36:50 +0100
commitca1c66c3ab52e226d7d36716dac9928e93da912a (patch)
tree43c15b56969904ddf2399927ef8f2c55ac7dc577
parent3a3bf85fb3b07a25a8c2083124d9ea74d695d223 (diff)
parent0ddf6649d679123b281879416b46e42933b82a21 (diff)
downloadATCD-ca1c66c3ab52e226d7d36716dac9928e93da912a.tar.gz
Merge pull request #1993 from jwillemsen/jwi-noexcept2
Make use of noexcept instead of throw()
-rw-r--r--ACE/ace/Auto_Functor.h42
-rw-r--r--ACE/ace/Local_Name_Space_T.cpp3
-rw-r--r--ACE/ace/Svc_Handler.cpp4
-rw-r--r--ACE/ace/Svc_Handler.h4
-rw-r--r--ACE/ace/config-lite.h2
-rw-r--r--ACE/ace/config-macros.h8
-rw-r--r--ACE/examples/DLL/Newsweek.cpp2
-rw-r--r--ACE/examples/DLL/Newsweek.h2
-rw-r--r--ACE/examples/DLL/Today.cpp2
-rw-r--r--ACE/examples/DLL/Today.h2
-rw-r--r--ACE/examples/Shared_Malloc/test_persistence.cpp2
-rw-r--r--ACE/tests/DLL_Test_Impl.cpp2
-rw-r--r--ACE/tests/DLL_Test_Impl.h2
-rw-r--r--ACE/tests/Dynamic_Test.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/ScopeGuard.h22
-rw-r--r--TAO/orbsvcs/tests/Notify/Bug_3688b_Regression/TestBroadcaster.cpp21
-rw-r--r--TAO/orbsvcs/tests/Notify/Bug_3688b_Regression/TestBroadcaster.h3
-rw-r--r--TAO/tao/Asynch_Reply_Dispatcher_Base.h2
-rw-r--r--TAO/tao/Asynch_Reply_Dispatcher_Base.inl2
-rw-r--r--TAO/tao/Bounded_Array_Sequence_T.h2
-rw-r--r--TAO/tao/Bounded_Basic_String_Sequence_T.h2
-rw-r--r--TAO/tao/Bounded_Object_Reference_Sequence_T.h2
-rw-r--r--TAO/tao/Bounded_Value_Sequence_T.h2
-rw-r--r--TAO/tao/Generic_Sequence_T.h2
-rw-r--r--TAO/tao/Messaging/AMH_Response_Handler.cpp2
-rw-r--r--TAO/tao/Messaging/AMH_Response_Handler.h2
-rw-r--r--TAO/tao/PortableServer/Servant_var.cpp2
-rw-r--r--TAO/tao/PortableServer/Servant_var.h2
-rw-r--r--TAO/tao/PortableServer/Servant_var.inl2
-rw-r--r--TAO/tao/Unbounded_Array_Sequence_T.h2
-rw-r--r--TAO/tao/Unbounded_Basic_String_Sequence_T.h2
-rw-r--r--TAO/tao/Unbounded_Object_Reference_Sequence_T.h2
-rw-r--r--TAO/tao/Unbounded_Octet_Sequence_T.h2
-rw-r--r--TAO/tao/Unbounded_Value_Sequence_T.h2
-rw-r--r--TAO/tao/Utils/Implicit_Deactivator.cpp2
-rw-r--r--TAO/tao/Utils/Implicit_Deactivator.h2
-rw-r--r--TAO/tao/Utils/ORB_Destroyer.cpp2
-rw-r--r--TAO/tao/Utils/ORB_Destroyer.h2
-rw-r--r--TAO/tao/Utils/PolicyList_Destroyer.cpp2
-rw-r--r--TAO/tao/Utils/PolicyList_Destroyer.h2
-rw-r--r--TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h2
-rw-r--r--TAO/tao/Valuetype/Unbounded_Valuetype_Sequence_T.h2
-rw-r--r--TAO/tests/Bug_2936_Regression/PersistentPOA.cpp5
-rw-r--r--TAO/tests/Bug_2936_Regression/PersistentPOA.h5
-rw-r--r--TAO/tests/Bug_3251_Regression/PersistentPoa.cpp3
-rw-r--r--TAO/tests/Bug_3251_Regression/PersistentPoa.h3
-rw-r--r--TAO/tests/ORB_Local_Config/Bug_2612/DllOrb.cpp3
-rw-r--r--TAO/tests/ORB_Local_Config/Bug_2612/DllOrb.h2
-rw-r--r--TAO/tests/POA/DSI/Database_i.cpp2
-rw-r--r--TAO/tests/POA/DSI/Database_i.h2
-rw-r--r--TAO/utils/wxNamingViewer/wxAutoDialog.h7
59 files changed, 112 insertions, 131 deletions
diff --git a/ACE/ace/Auto_Functor.h b/ACE/ace/Auto_Functor.h
index d6cb1682ddd..cbf4827b6a4 100644
--- a/ACE/ace/Auto_Functor.h
+++ b/ACE/ace/Auto_Functor.h
@@ -46,10 +46,10 @@ struct Auto_Functor_Ref
*
* The functor is called in the destructor, and it must implement:
*
- * Functor() throw();<BR>
- * Functor(Functor const &) throw();<BR>
- * Functor & operator=(Functor const &) throw();<BR>
- * void operator()(X * p) throw();<BR>
+ * Functor() noexcept;<BR>
+ * Functor(Functor const &) noexcept;<BR>
+ * Functor & operator=(Functor const &) noexcept;<BR>
+ * void operator()(X * p) noexcept;<BR>
*/
template<typename X, typename Functor>
class Auto_Functor
@@ -60,41 +60,41 @@ public:
/// Constructor
explicit Auto_Functor (X * p = 0,
- Functor functor = Functor()); // throw()
+ Functor functor = Functor()); // noexcept
- Auto_Functor (Auto_Functor & rhs); // throw()
+ Auto_Functor (Auto_Functor & rhs); // noexcept
- Auto_Functor<X,Functor>& operator= (Auto_Functor & rhs); // throw()
+ Auto_Functor<X,Functor>& operator= (Auto_Functor & rhs); // noexcept
template<typename Y>
- Auto_Functor(Auto_Functor<Y,Functor>& rhs); // throw()
+ Auto_Functor(Auto_Functor<Y,Functor>& rhs); // noexcept
template<typename Y>
- Auto_Functor<X,Functor>& operator= (Auto_Functor<Y,Functor>& rhs); // throw()
+ Auto_Functor<X,Functor>& operator= (Auto_Functor<Y,Functor>& rhs); // noexcept
- ~Auto_Functor(); // throw()
+ ~Auto_Functor(); // noexcept
- X & operator*() const; // throw()
+ X & operator*() const; // noexcept
- X * operator->() const; // throw()
+ X * operator->() const; // noexcept
- X * get(); // throw()
+ X * get(); // noexcept
- X * release(); // throw()
+ X * release(); // noexcept
- void reset (X * p = 0); // throw()
+ void reset (X * p = 0); // noexcept
- void reset (X * p, Functor f); // throw()
+ void reset (X * p, Functor f); // noexcept
- Functor const & functor() const; // throw()
+ Functor const & functor() const; // noexcept
- Auto_Functor(Auto_Functor_Ref<X,Functor> rhs); // throw()
+ Auto_Functor(Auto_Functor_Ref<X,Functor> rhs); // noexcept
- Auto_Functor<X,Functor> & operator=(Auto_Functor_Ref<X,Functor> rhs); // throw()
+ Auto_Functor<X,Functor> & operator=(Auto_Functor_Ref<X,Functor> rhs); // noexcept
- template<typename Y> operator Auto_Functor_Ref<Y,Functor>(); // throw()
+ template<typename Y> operator Auto_Functor_Ref<Y,Functor>(); // noexcept
- template<typename Y> operator Auto_Functor<Y,Functor>(); // throw()
+ template<typename Y> operator Auto_Functor<Y,Functor>(); // noexcept
private:
X * p_;
diff --git a/ACE/ace/Local_Name_Space_T.cpp b/ACE/ace/Local_Name_Space_T.cpp
index 0ebce658148..91390fafd63 100644
--- a/ACE/ace/Local_Name_Space_T.cpp
+++ b/ACE/ace/Local_Name_Space_T.cpp
@@ -439,8 +439,7 @@ ACE_Local_Name_Space<ACE_MEM_POOL_2, ACE_LOCK>::create_manager_i ()
ACE_TCHAR lock_name_for_backing_store [MAXPATHLEN + MAXNAMELEN];
const ACE_TCHAR *postfix = database;
- size_t length = 0;
- length = sizeof lock_name_for_local_name_space / sizeof (ACE_TCHAR);
+ size_t length = sizeof lock_name_for_local_name_space / sizeof (ACE_TCHAR);
ACE_OS::strsncpy (lock_name_for_local_name_space,
dir,
length);
diff --git a/ACE/ace/Svc_Handler.cpp b/ACE/ace/Svc_Handler.cpp
index 9d5234f2cc5..0c6a147c824 100644
--- a/ACE/ace/Svc_Handler.cpp
+++ b/ACE/ace/Svc_Handler.cpp
@@ -56,7 +56,7 @@ ACE_Svc_Handler<PEER_STREAM, SYNCH_TRAITS>::operator new (size_t n)
template <typename PEER_STREAM, typename SYNCH_TRAITS> void *
ACE_Svc_Handler<PEER_STREAM, SYNCH_TRAITS>::operator new (size_t n,
- const std::nothrow_t&) throw()
+ const std::nothrow_t&) noexcept
{
ACE_TRACE ("ACE_Svc_Handler<PEER_STREAM, SYNCH_TRAITS>::operator new(nothrow)");
@@ -83,7 +83,7 @@ ACE_Svc_Handler<PEER_STREAM, SYNCH_TRAITS>::operator new (size_t n,
template <typename PEER_STREAM, typename SYNCH_TRAITS> void
ACE_Svc_Handler<PEER_STREAM, SYNCH_TRAITS>::operator delete (void *p,
- const std::nothrow_t&) throw()
+ const std::nothrow_t&) noexcept
{
ACE_TRACE("ACE_Svc_Handler<PEER_STREAM, SYNCH_TRAITS>::operator delete(nothrow)");
::delete [] static_cast <char *> (p);
diff --git a/ACE/ace/Svc_Handler.h b/ACE/ace/Svc_Handler.h
index 8ee46fe75d2..c17e8223a95 100644
--- a/ACE/ace/Svc_Handler.h
+++ b/ACE/ace/Svc_Handler.h
@@ -174,8 +174,8 @@ public:
/// <Svc_Handler> is allocated dynamically, which allows it to clean
/// itself up correctly whether or not it's allocated statically or
/// dynamically.
- void *operator new (size_t n, const std::nothrow_t&) throw();
- void operator delete (void *p, const std::nothrow_t&) throw ();
+ void *operator new (size_t n, const std::nothrow_t&) noexcept;
+ void operator delete (void *p, const std::nothrow_t&) noexcept;
/// This operator permits "placement new" on a per-object basis.
void * operator new (size_t n, void *p);
diff --git a/ACE/ace/config-lite.h b/ACE/ace/config-lite.h
index 29ac3d130a5..9fcc12c2a6b 100644
--- a/ACE/ace/config-lite.h
+++ b/ACE/ace/config-lite.h
@@ -54,7 +54,7 @@ extern "C"
# if defined (ACE_HAS_SIG_C_FUNC)
extern "C" {
# endif /* ACE_HAS_SIG_C_FUNC */
-typedef void (*ACE_CLEANUP_FUNC)(void *object, void *param) /* throw () */;
+typedef void (*ACE_CLEANUP_FUNC)(void *object, void *param) /* noexcept */;
# if defined (ACE_HAS_SIG_C_FUNC)
}
# endif /* ACE_HAS_SIG_C_FUNC */
diff --git a/ACE/ace/config-macros.h b/ACE/ace/config-macros.h
index d4ef8031e6c..0ea1e2dc3ad 100644
--- a/ACE/ace/config-macros.h
+++ b/ACE/ace/config-macros.h
@@ -293,12 +293,12 @@
# define ACE_ALLOC_HOOK_DECLARE \
void *operator new (size_t bytes); \
void *operator new (size_t bytes, void *ptr); \
- void *operator new (size_t bytes, const std::nothrow_t &) throw (); \
+ void *operator new (size_t bytes, const std::nothrow_t &) noexcept; \
void operator delete (void *ptr); \
void operator delete (void *ptr, const std::nothrow_t &); \
void *operator new[] (size_t size); \
void operator delete[] (void *ptr); \
- void *operator new[] (size_t size, const std::nothrow_t &) throw (); \
+ void *operator new[] (size_t size, const std::nothrow_t &) noexcept; \
void operator delete[] (void *ptr, const std::nothrow_t &)
# define ACE_GENERIC_ALLOCS(MAKE_PREFIX, CLASS) \
@@ -311,7 +311,7 @@
} \
MAKE_PREFIX (void *, CLASS)::operator new (size_t, void *ptr) { return ptr; }\
MAKE_PREFIX (void *, CLASS)::operator new (size_t bytes, \
- const std::nothrow_t &) throw () \
+ const std::nothrow_t &) noexcept \
{ return ACE_Allocator::instance ()->malloc (bytes); } \
MAKE_PREFIX (void, CLASS)::operator delete (void *ptr) \
{ if (ptr) ACE_Allocator::instance ()->free (ptr); } \
@@ -328,7 +328,7 @@
MAKE_PREFIX (void, CLASS)::operator delete[] (void *ptr) \
{ if (ptr) ACE_Allocator::instance ()->free (ptr); } \
MAKE_PREFIX (void *, CLASS)::operator new[] (size_t size, \
- const std::nothrow_t &) throw ()\
+ const std::nothrow_t &) noexcept\
{ return ACE_Allocator::instance ()->malloc (size); } \
MAKE_PREFIX (void, CLASS)::operator delete[] (void *ptr, \
const std::nothrow_t &) \
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);
}
diff --git a/ACE/tests/DLL_Test_Impl.cpp b/ACE/tests/DLL_Test_Impl.cpp
index 23f503e3491..3a6ae2e428d 100644
--- a/ACE/tests/DLL_Test_Impl.cpp
+++ b/ACE/tests/DLL_Test_Impl.cpp
@@ -62,7 +62,7 @@ Hello_Impl::operator new (size_t bytes, const std::nothrow_t &nt)
}
void
-Hello_Impl::operator delete (void *ptr, const std::nothrow_t&) throw ()
+Hello_Impl::operator delete (void *ptr, const std::nothrow_t&) noexcept
{
ACE_DEBUG ((LM_INFO, "Hello_Impl::delete\n"));
::delete [] static_cast<char *> (ptr);
diff --git a/ACE/tests/DLL_Test_Impl.h b/ACE/tests/DLL_Test_Impl.h
index 8c3633e4f90..acfcb76fa67 100644
--- a/ACE/tests/DLL_Test_Impl.h
+++ b/ACE/tests/DLL_Test_Impl.h
@@ -52,7 +52,7 @@ public:
/// Overloaded new operator, nothrow_t variant.
void *operator new (size_t bytes, const std::nothrow_t &nt);
- 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/tests/Dynamic_Test.cpp b/ACE/tests/Dynamic_Test.cpp
index 77c000b2c46..305e8af518c 100644
--- a/ACE/tests/Dynamic_Test.cpp
+++ b/ACE/tests/Dynamic_Test.cpp
@@ -23,8 +23,8 @@ public:
void *operator new (size_t n);
- void *operator new (size_t n, const std::nothrow_t&) throw();
- void operator delete (void *p, const std::nothrow_t&) throw ();
+ void *operator new (size_t n, const std::nothrow_t&) noexcept;
+ void operator delete (void *p, const std::nothrow_t&) noexcept;
void * operator new (size_t n, void *p);
void operator delete (void *);
@@ -60,7 +60,7 @@ A::operator new (size_t n)
}
void*
-A::operator new (size_t n, const std::nothrow_t&) throw()
+A::operator new (size_t n, const std::nothrow_t&) noexcept
{
ACE_Dynamic *const dynamic_instance = ACE_Dynamic::instance ();
@@ -84,7 +84,7 @@ A::operator new (size_t n, const std::nothrow_t&) throw()
}
void
-A::operator delete (void *p, const std::nothrow_t&) throw()
+A::operator delete (void *p, const std::nothrow_t&) noexcept
{
::delete [] static_cast <char *> (p);
}
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h
index eb2b2fbc583..0ba8c9eeb56 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h
@@ -39,17 +39,17 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* the PROXY interface must implement:
*
* @verbatim
- * void connected (PEER *peer) throw ();
- * void reconnected (PEER *peer) throw ();
- * void disconnected (PEER *peer) throw ();
+ * void connected (PEER *peer) noexcept;
+ * void reconnected (PEER *peer) noexcept;
+ * void disconnected (PEER *peer) noexcept;
* @endverbatim
*
* Similarly, the PEER interface must implement:
*
* @verbatim
- * void connected (PROXY *proxy) throw ();
- * void reconnected (PROXY *proxy) throw ();
- * void disconnected (PROXY *proxy) throw ();
+ * void connected (PROXY *proxy) noexcept;
+ * void reconnected (PROXY *proxy) noexcept;
+ * void disconnected (PROXY *proxy) noexcept;
* @endverbatim
*/
template<class EVENT_CHANNEL, class PROXY, class INTERFACE, class PEER>
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h
index dbb9b9cfa80..4c40bd9d446 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h
@@ -55,7 +55,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
*
* /// activate the proxy and return the object reference
* PROXY::_ptr_type
- * PROXY::activate () throw ();
+ * PROXY::activate () noexcept;
* @endverbatim
*/
template<class EVENT_CHANNEL, class PROXY, class INTERFACE>
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.cpp
index 3f3b8254f54..f6253758efa 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.cpp
@@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void
TAO_EC_Channel_Destroyer_Functor::operator() (
- TAO_EC_Event_Channel_Base * event_channel) throw ()
+ TAO_EC_Event_Channel_Base * event_channel) noexcept
{
try
{
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h b/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h
index b3d44ceb038..3be79f75b7d 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h
@@ -24,7 +24,7 @@ struct TAO_RTEvent_Serv_Export TAO_EC_Channel_Destroyer_Functor
typedef TAO_EC_Event_Channel_Base * argument;
/// Destroy @c event_channel
- void operator() (TAO_EC_Event_Channel_Base * event_channel) throw ();
+ void operator() (TAO_EC_Event_Channel_Base * event_channel) noexcept;
};
/**
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp
index 68c2c3cb5d8..f5636f24b7a 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp
@@ -128,7 +128,7 @@ TAO_EC_ProxyPushSupplier::cleanup_i ()
}
void
-TAO_EC_ProxyPushSupplier::deactivate () throw ()
+TAO_EC_ProxyPushSupplier::deactivate () noexcept
{
try
{
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h
index f361456a132..9cd3b7ac0a5 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h
@@ -69,7 +69,7 @@ public:
RtecEventChannelAdmin::ProxyPushSupplier_ptr &proxy) = 0;
/// Deactivate from the POA
- virtual void deactivate () throw ();
+ virtual void deactivate () noexcept;
/// Disconnect this from
virtual void disconnect_push_supplier () = 0;
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.cpp
index 8c5b302c917..0f6ee7e7b58 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.cpp
@@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void
TAO_EC_Supplier_Proxy_Disconnect_Functor::operator() (
- RtecEventComm::PushSupplier_ptr supplier) throw ()
+ RtecEventComm::PushSupplier_ptr supplier) noexcept
{
try
{
@@ -23,7 +23,7 @@ TAO_EC_Supplier_Proxy_Disconnect_Functor::operator() (
void
TAO_EC_Consumer_Proxy_Disconnect_Functor::operator() (
- RtecEventComm::PushConsumer_ptr consumer) throw ()
+ RtecEventComm::PushConsumer_ptr consumer) noexcept
{
try
{
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h b/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h
index d8a0d1104a8..4a5b4f7d90b 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h
@@ -24,7 +24,7 @@ struct TAO_RTEvent_Serv_Export TAO_EC_Supplier_Proxy_Disconnect_Functor
typedef RtecEventComm::PushSupplier_ptr argument;
/// Disconnect from @c supplier
- void operator() (RtecEventComm::PushSupplier_ptr supplier) throw ();
+ void operator() (RtecEventComm::PushSupplier_ptr supplier) noexcept;
};
/**
@@ -49,7 +49,7 @@ struct TAO_RTEvent_Serv_Export TAO_EC_Consumer_Proxy_Disconnect_Functor
typedef RtecEventComm::PushConsumer_ptr argument;
/// Disconnect from @c consumer
- void operator() (RtecEventComm::PushConsumer_ptr consumer) throw ();
+ void operator() (RtecEventComm::PushConsumer_ptr consumer) noexcept;
};
/**
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/ScopeGuard.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/ScopeGuard.h
index 08e4776a875..7cc9fb79285 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/ScopeGuard.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/ScopeGuard.h
@@ -43,13 +43,13 @@ protected:
~ScopeGuardImplBase()
{
}
- ScopeGuardImplBase(const ScopeGuardImplBase& other) throw()
+ ScopeGuardImplBase(const ScopeGuardImplBase& other) noexcept
: dismissed_(other.dismissed_)
{
other.Dismiss();
}
template <typename J>
- static void SafeExecute(J& j) throw()
+ static void SafeExecute(J& j) noexcept
{
if (!j.dismissed_)
try
@@ -63,10 +63,10 @@ protected:
mutable bool dismissed_;
public:
- ScopeGuardImplBase() throw() : dismissed_(false)
+ ScopeGuardImplBase() noexcept : dismissed_(false)
{
}
- void Dismiss() const throw()
+ void Dismiss() const noexcept
{
dismissed_ = true;
}
@@ -82,7 +82,7 @@ public:
{
return ScopeGuardImpl0<F>(fun);
}
- ~ScopeGuardImpl0() throw()
+ ~ScopeGuardImpl0() noexcept
{
SafeExecute(*this);
}
@@ -111,7 +111,7 @@ public:
{
return ScopeGuardImpl1<F, P1>(fun, p1);
}
- ~ScopeGuardImpl1() throw()
+ ~ScopeGuardImpl1() noexcept
{
SafeExecute(*this);
}
@@ -141,7 +141,7 @@ public:
{
return ScopeGuardImpl2<F, P1, P2>(fun, p1, p2);
}
- ~ScopeGuardImpl2() throw()
+ ~ScopeGuardImpl2() noexcept
{
SafeExecute(*this);
}
@@ -172,7 +172,7 @@ public:
{
return ScopeGuardImpl3<F, P1, P2, P3>(fun, p1, p2, p3);
}
- ~ScopeGuardImpl3() throw()
+ ~ScopeGuardImpl3() noexcept
{
SafeExecute(*this);
}
@@ -206,7 +206,7 @@ public:
{
return ObjScopeGuardImpl0<Obj, MemFun>(obj, memFun);
}
- ~ObjScopeGuardImpl0() throw()
+ ~ObjScopeGuardImpl0() noexcept
{
SafeExecute(*this);
}
@@ -235,7 +235,7 @@ public:
{
return ObjScopeGuardImpl1<Obj, MemFun, P1>(obj, memFun, p1);
}
- ~ObjScopeGuardImpl1() throw()
+ ~ObjScopeGuardImpl1() noexcept
{
SafeExecute(*this);
}
@@ -265,7 +265,7 @@ public:
{
return ObjScopeGuardImpl2<Obj, MemFun, P1, P2>(obj, memFun, p1, p2);
}
- ~ObjScopeGuardImpl2() throw()
+ ~ObjScopeGuardImpl2() noexcept
{
SafeExecute(*this);
}
diff --git a/TAO/orbsvcs/tests/Notify/Bug_3688b_Regression/TestBroadcaster.cpp b/TAO/orbsvcs/tests/Notify/Bug_3688b_Regression/TestBroadcaster.cpp
index 482ffe8721c..0077fb4b1fe 100644
--- a/TAO/orbsvcs/tests/Notify/Bug_3688b_Regression/TestBroadcaster.cpp
+++ b/TAO/orbsvcs/tests/Notify/Bug_3688b_Regression/TestBroadcaster.cpp
@@ -1,13 +1,10 @@
#include "TestBroadcaster.h"
-
TestBroadcaster::TestBroadcaster()
{
-} /* end of TestBroadcaster::TestBroadcaster */
-
+}
-TestBroadcaster::~TestBroadcaster()
- throw()
+TestBroadcaster::~TestBroadcaster() noexcept
{
// ensure nothrow guarantee
try
@@ -17,13 +14,11 @@ TestBroadcaster::~TestBroadcaster()
catch(...)
{
}
-} /* end of TestBroadcaster::~TestBroadcaster */
-
+}
bool TestBroadcaster::connect(
CORBA::ORB_ptr p_orb,
- std::string const & rc_channelIor
-)
+ std::string const & rc_channelIor)
{
try
{
@@ -59,8 +54,7 @@ bool TestBroadcaster::connect(
}
return true;
-} /* end of TestBroadcaster::connect */
-
+}
bool TestBroadcaster::disconnect()
{
@@ -111,10 +105,9 @@ bool TestBroadcaster::sendData()
}
return true;
-} /* end of TestBroadcaster::sendData */
-
+}
bool TestBroadcaster::isConnected() const
{
return !CORBA::is_nil(mv_sequenceProxyPushConsumer.in());
-} /* end of TestBroadcaster::isConnected */
+}
diff --git a/TAO/orbsvcs/tests/Notify/Bug_3688b_Regression/TestBroadcaster.h b/TAO/orbsvcs/tests/Notify/Bug_3688b_Regression/TestBroadcaster.h
index 8685542fc1c..806eb731202 100644
--- a/TAO/orbsvcs/tests/Notify/Bug_3688b_Regression/TestBroadcaster.h
+++ b/TAO/orbsvcs/tests/Notify/Bug_3688b_Regression/TestBroadcaster.h
@@ -15,8 +15,7 @@ class bug3688_Export TestBroadcaster
TestBroadcaster ();
/// Destructor.
- ~TestBroadcaster ()
- throw ();
+ ~TestBroadcaster () noexcept;
bool connect(
CORBA::ORB_ptr p_orb,
diff --git a/TAO/tao/Asynch_Reply_Dispatcher_Base.h b/TAO/tao/Asynch_Reply_Dispatcher_Base.h
index 5d2c3fd03fa..dbdcc48e6d6 100644
--- a/TAO/tao/Asynch_Reply_Dispatcher_Base.h
+++ b/TAO/tao/Asynch_Reply_Dispatcher_Base.h
@@ -132,7 +132,7 @@ namespace TAO
class TAO_Export ARDB_Refcount_Functor
{
public:
- void operator() (TAO_Asynch_Reply_Dispatcher_Base *ardb) throw ();
+ void operator() (TAO_Asynch_Reply_Dispatcher_Base *ardb) noexcept;
};
}
diff --git a/TAO/tao/Asynch_Reply_Dispatcher_Base.inl b/TAO/tao/Asynch_Reply_Dispatcher_Base.inl
index ec6c1639ce3..2825c91566b 100644
--- a/TAO/tao/Asynch_Reply_Dispatcher_Base.inl
+++ b/TAO/tao/Asynch_Reply_Dispatcher_Base.inl
@@ -5,7 +5,7 @@ namespace TAO
{
ACE_INLINE void
ARDB_Refcount_Functor::operator () (
- TAO_Asynch_Reply_Dispatcher_Base *ardb) throw ()
+ TAO_Asynch_Reply_Dispatcher_Base *ardb) noexcept
{
(void) ardb->intrusive_remove_ref (ardb);
}
diff --git a/TAO/tao/Bounded_Array_Sequence_T.h b/TAO/tao/Bounded_Array_Sequence_T.h
index d52a4db56cc..dc2c6b22f2b 100644
--- a/TAO/tao/Bounded_Array_Sequence_T.h
+++ b/TAO/tao/Bounded_Array_Sequence_T.h
@@ -72,7 +72,7 @@ public:
inline value_type * get_buffer(CORBA::Boolean orphan = false) {
return impl_.get_buffer(orphan);
}
- inline void swap(bounded_array_sequence & rhs) throw() {
+ inline void swap(bounded_array_sequence & rhs) noexcept {
impl_.swap(rhs.impl_);
}
static value_type * allocbuf(CORBA::ULong maximum) {
diff --git a/TAO/tao/Bounded_Basic_String_Sequence_T.h b/TAO/tao/Bounded_Basic_String_Sequence_T.h
index a249e9110ff..d048cc0edc0 100644
--- a/TAO/tao/Bounded_Basic_String_Sequence_T.h
+++ b/TAO/tao/Bounded_Basic_String_Sequence_T.h
@@ -88,7 +88,7 @@ public:
inline value_type * get_buffer(CORBA::Boolean orphan = false) {
return impl_.get_buffer(orphan);
}
- inline void swap(bounded_basic_string_sequence & rhs) throw() {
+ inline void swap(bounded_basic_string_sequence & rhs) noexcept {
impl_.swap(rhs.impl_);
}
diff --git a/TAO/tao/Bounded_Object_Reference_Sequence_T.h b/TAO/tao/Bounded_Object_Reference_Sequence_T.h
index d86427db8b2..ac95fe9c926 100644
--- a/TAO/tao/Bounded_Object_Reference_Sequence_T.h
+++ b/TAO/tao/Bounded_Object_Reference_Sequence_T.h
@@ -90,7 +90,7 @@ public:
return impl_.get_buffer(orphan);
}
// @copydoc TAO::details::generic_sequence::swap
- inline void swap(bounded_object_reference_sequence & rhs) throw() {
+ inline void swap(bounded_object_reference_sequence & rhs) noexcept {
impl_.swap(rhs.impl_);
}
diff --git a/TAO/tao/Bounded_Value_Sequence_T.h b/TAO/tao/Bounded_Value_Sequence_T.h
index 3579c6cd2b3..07383956c04 100644
--- a/TAO/tao/Bounded_Value_Sequence_T.h
+++ b/TAO/tao/Bounded_Value_Sequence_T.h
@@ -84,7 +84,7 @@ public:
return impl_.get_buffer(orphan);
}
// @copydoc TAO::details::generic_sequence::swap()
- inline void swap(bounded_value_sequence & rhs) throw() {
+ inline void swap(bounded_value_sequence & rhs) noexcept {
impl_.swap(rhs.impl_);
}
static value_type * allocbuf(CORBA::ULong maximum) {
diff --git a/TAO/tao/Generic_Sequence_T.h b/TAO/tao/Generic_Sequence_T.h
index 46e48aa5189..eca632bf6fa 100644
--- a/TAO/tao/Generic_Sequence_T.h
+++ b/TAO/tao/Generic_Sequence_T.h
@@ -315,7 +315,7 @@ public:
return tmp.buffer_;
}
- void swap(generic_sequence & rhs) throw()
+ void swap(generic_sequence & rhs) noexcept
{
std::swap(maximum_, rhs.maximum_);
std::swap(length_, rhs.length_);
diff --git a/TAO/tao/Messaging/AMH_Response_Handler.cpp b/TAO/tao/Messaging/AMH_Response_Handler.cpp
index 63fbd04897f..9567e23fe2f 100644
--- a/TAO/tao/Messaging/AMH_Response_Handler.cpp
+++ b/TAO/tao/Messaging/AMH_Response_Handler.cpp
@@ -331,7 +331,7 @@ TAO_AMH_Response_Handler::_remove_ref ()
namespace TAO
{
void
- ARH_Refcount_Functor::operator () (TAO_AMH_Response_Handler *arh) throw ()
+ ARH_Refcount_Functor::operator () (TAO_AMH_Response_Handler *arh) noexcept
{
(void) arh->_remove_ref ();
}
diff --git a/TAO/tao/Messaging/AMH_Response_Handler.h b/TAO/tao/Messaging/AMH_Response_Handler.h
index b10938f4c32..17332561b9d 100644
--- a/TAO/tao/Messaging/AMH_Response_Handler.h
+++ b/TAO/tao/Messaging/AMH_Response_Handler.h
@@ -198,7 +198,7 @@ namespace TAO
class TAO_Messaging_Export ARH_Refcount_Functor
{
public:
- void operator() (TAO_AMH_Response_Handler *arh) throw ();
+ void operator() (TAO_AMH_Response_Handler *arh) noexcept;
};
}
diff --git a/TAO/tao/PortableServer/Servant_var.cpp b/TAO/tao/PortableServer/Servant_var.cpp
index 3b1a63f7512..e89515b1e9f 100644
--- a/TAO/tao/PortableServer/Servant_var.cpp
+++ b/TAO/tao/PortableServer/Servant_var.cpp
@@ -31,7 +31,7 @@ PortableServer::Servant_var<T>::_duplicate (T * p)
}
template <class T>
-PortableServer::Servant_var<T>::~Servant_var () /* throw () */
+PortableServer::Servant_var<T>::~Servant_var () /* noexcept */
{
// Unfortunately, there is no throw spec on _remove_ref, so we
// can't assume that it will not throw. If it does, then we are in
diff --git a/TAO/tao/PortableServer/Servant_var.h b/TAO/tao/PortableServer/Servant_var.h
index ae34add8165..d5ff171f722 100644
--- a/TAO/tao/PortableServer/Servant_var.h
+++ b/TAO/tao/PortableServer/Servant_var.h
@@ -32,7 +32,7 @@ namespace PortableServer
* @author Jody Hagins
*
* @todo Life would be much easier if _add_ref() and _remove_ref() had
- * throw specs of "throw ()", that can be hidden in static
+ * throw specs of "noexcept", that can be hidden in static
* methods though.
*/
template<class T>
diff --git a/TAO/tao/PortableServer/Servant_var.inl b/TAO/tao/PortableServer/Servant_var.inl
index c3a78412637..a5c397ebc93 100644
--- a/TAO/tao/PortableServer/Servant_var.inl
+++ b/TAO/tao/PortableServer/Servant_var.inl
@@ -5,7 +5,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <class T>
ACE_INLINE void
-PortableServer::Servant_var<T>::swap (Servant_var<T> & rhs) /* throw () */
+PortableServer::Servant_var<T>::swap (Servant_var<T> & rhs) /* noexcept */
{
std::swap (this->ptr_, rhs.ptr_);
}
diff --git a/TAO/tao/Unbounded_Array_Sequence_T.h b/TAO/tao/Unbounded_Array_Sequence_T.h
index 6a304a519b9..873376148af 100644
--- a/TAO/tao/Unbounded_Array_Sequence_T.h
+++ b/TAO/tao/Unbounded_Array_Sequence_T.h
@@ -77,7 +77,7 @@ public:
inline value_type * get_buffer(CORBA::Boolean orphan = false) {
return impl_.get_buffer(orphan);
}
- inline void swap(unbounded_array_sequence & rhs) throw() {
+ inline void swap(unbounded_array_sequence & rhs) noexcept {
impl_.swap(rhs.impl_);
}
static value_type * allocbuf(CORBA::ULong maximum) {
diff --git a/TAO/tao/Unbounded_Basic_String_Sequence_T.h b/TAO/tao/Unbounded_Basic_String_Sequence_T.h
index c6839076d9d..13bb9b898f0 100644
--- a/TAO/tao/Unbounded_Basic_String_Sequence_T.h
+++ b/TAO/tao/Unbounded_Basic_String_Sequence_T.h
@@ -98,7 +98,7 @@ public:
return impl_.get_buffer(orphan);
}
// @copydoc TAO::details::generic_sequence::swap
- inline void swap(unbounded_basic_string_sequence & rhs) throw() {
+ inline void swap(unbounded_basic_string_sequence & rhs) noexcept {
impl_.swap(rhs.impl_);
}
diff --git a/TAO/tao/Unbounded_Object_Reference_Sequence_T.h b/TAO/tao/Unbounded_Object_Reference_Sequence_T.h
index 2de1bb30c5a..8d43f831c7a 100644
--- a/TAO/tao/Unbounded_Object_Reference_Sequence_T.h
+++ b/TAO/tao/Unbounded_Object_Reference_Sequence_T.h
@@ -92,7 +92,7 @@ public:
return impl_.get_buffer(orphan);
}
// @copydoc TAO::details::generic_sequence::swap()
- inline void swap(unbounded_object_reference_sequence & rhs) throw() {
+ inline void swap(unbounded_object_reference_sequence & rhs) noexcept {
impl_.swap(rhs.impl_);
}
diff --git a/TAO/tao/Unbounded_Octet_Sequence_T.h b/TAO/tao/Unbounded_Octet_Sequence_T.h
index dc7a3bf1053..f1a301be14b 100644
--- a/TAO/tao/Unbounded_Octet_Sequence_T.h
+++ b/TAO/tao/Unbounded_Octet_Sequence_T.h
@@ -223,7 +223,7 @@ public:
return !this->operator==(rhs);
}
- inline void swap(unbounded_value_sequence & rhs) throw() {
+ inline void swap(unbounded_value_sequence & rhs) noexcept {
std::swap (mb_, rhs.mb_);
std::swap (maximum_, rhs.maximum_);
std::swap (length_, rhs.length_);
diff --git a/TAO/tao/Unbounded_Value_Sequence_T.h b/TAO/tao/Unbounded_Value_Sequence_T.h
index a9cbab9133e..b190d90e54a 100644
--- a/TAO/tao/Unbounded_Value_Sequence_T.h
+++ b/TAO/tao/Unbounded_Value_Sequence_T.h
@@ -77,7 +77,7 @@ public:
inline value_type * get_buffer(CORBA::Boolean orphan = false) {
return impl_.get_buffer(orphan);
}
- inline void swap(unbounded_value_sequence & rhs) throw() {
+ inline void swap(unbounded_value_sequence & rhs) noexcept {
impl_.swap(rhs.impl_);
}
static value_type * allocbuf(CORBA::ULong maximum) {
diff --git a/TAO/tao/Utils/Implicit_Deactivator.cpp b/TAO/tao/Utils/Implicit_Deactivator.cpp
index 76066530e04..c8175590c58 100644
--- a/TAO/tao/Utils/Implicit_Deactivator.cpp
+++ b/TAO/tao/Utils/Implicit_Deactivator.cpp
@@ -5,7 +5,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void
TAO::Utils::Implicit_Deactivation_Functor::operator () (
- PortableServer::ServantBase * servant) throw ()
+ PortableServer::ServantBase * servant) noexcept
{
try
{
diff --git a/TAO/tao/Utils/Implicit_Deactivator.h b/TAO/tao/Utils/Implicit_Deactivator.h
index 2a7f9d4e763..20e27fc40cb 100644
--- a/TAO/tao/Utils/Implicit_Deactivator.h
+++ b/TAO/tao/Utils/Implicit_Deactivator.h
@@ -36,7 +36,7 @@ namespace TAO
typedef PortableServer::ServantBase * argument;
// Deactivate an implicitly activated servant
- void operator() (PortableServer::ServantBase * servant) throw ();
+ void operator() (PortableServer::ServantBase * servant) noexcept;
};
/**
diff --git a/TAO/tao/Utils/ORB_Destroyer.cpp b/TAO/tao/Utils/ORB_Destroyer.cpp
index 1d33628198b..337c0594512 100644
--- a/TAO/tao/Utils/ORB_Destroyer.cpp
+++ b/TAO/tao/Utils/ORB_Destroyer.cpp
@@ -3,7 +3,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void
-TAO::Utils::ORB_Destroyer_Functor::operator() (CORBA::ORB_ptr orb) throw ()
+TAO::Utils::ORB_Destroyer_Functor::operator() (CORBA::ORB_ptr orb) noexcept
{
try
{
diff --git a/TAO/tao/Utils/ORB_Destroyer.h b/TAO/tao/Utils/ORB_Destroyer.h
index e6febb40611..694ab3d35fc 100644
--- a/TAO/tao/Utils/ORB_Destroyer.h
+++ b/TAO/tao/Utils/ORB_Destroyer.h
@@ -35,7 +35,7 @@ namespace TAO
typedef CORBA::ORB_ptr argument;
/// Destroy the ORB
- void operator() (CORBA::ORB_ptr orb) throw ();
+ void operator() (CORBA::ORB_ptr orb) noexcept;
};
/**
diff --git a/TAO/tao/Utils/PolicyList_Destroyer.cpp b/TAO/tao/Utils/PolicyList_Destroyer.cpp
index f4e06fcbc1c..67554c18b53 100644
--- a/TAO/tao/Utils/PolicyList_Destroyer.cpp
+++ b/TAO/tao/Utils/PolicyList_Destroyer.cpp
@@ -6,7 +6,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO::Utils::PolicyList_Destroyer::~PolicyList_Destroyer() throw ()
+TAO::Utils::PolicyList_Destroyer::~PolicyList_Destroyer() noexcept
{
for (CORBA::ULong i = 0; i != length(); ++i)
{
diff --git a/TAO/tao/Utils/PolicyList_Destroyer.h b/TAO/tao/Utils/PolicyList_Destroyer.h
index 821ba11dbb7..9e18fd6acbc 100644
--- a/TAO/tao/Utils/PolicyList_Destroyer.h
+++ b/TAO/tao/Utils/PolicyList_Destroyer.h
@@ -34,7 +34,7 @@ namespace TAO
{
public:
PolicyList_Destroyer(CORBA::ULong length_hint);
- ~PolicyList_Destroyer() throw ();
+ ~PolicyList_Destroyer() noexcept;
};
} // namespace Utils
} // namespace TAO
diff --git a/TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h b/TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h
index 163806e5da2..33d4c0bea3f 100644
--- a/TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h
+++ b/TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h
@@ -79,7 +79,7 @@ public:
inline value_type * get_buffer(CORBA::Boolean orphan = false) {
return impl_.get_buffer(orphan);
}
- inline void swap(bounded_valuetype_sequence & rhs) throw() {
+ inline void swap(bounded_valuetype_sequence & rhs) noexcept {
impl_.swap(rhs.impl_);
}
diff --git a/TAO/tao/Valuetype/Unbounded_Valuetype_Sequence_T.h b/TAO/tao/Valuetype/Unbounded_Valuetype_Sequence_T.h
index bc3d23335f8..876644394f5 100644
--- a/TAO/tao/Valuetype/Unbounded_Valuetype_Sequence_T.h
+++ b/TAO/tao/Valuetype/Unbounded_Valuetype_Sequence_T.h
@@ -82,7 +82,7 @@ public:
inline value_type * get_buffer(CORBA::Boolean orphan = false) {
return impl_.get_buffer(orphan);
}
- inline void swap(unbounded_valuetype_sequence & rhs) throw() {
+ inline void swap(unbounded_valuetype_sequence & rhs) noexcept {
impl_.swap(rhs.impl_);
}
diff --git a/TAO/tests/Bug_2936_Regression/PersistentPOA.cpp b/TAO/tests/Bug_2936_Regression/PersistentPOA.cpp
index 97e8ee72f65..f2ffdd12f74 100644
--- a/TAO/tests/Bug_2936_Regression/PersistentPOA.cpp
+++ b/TAO/tests/Bug_2936_Regression/PersistentPOA.cpp
@@ -13,13 +13,10 @@ PersistentPoa::PersistentPoa ()
{
}
-
-PersistentPoa::~PersistentPoa ()
- throw ()
+PersistentPoa::~PersistentPoa () noexcept
{
}
-
int PersistentPoa::init (int argc, ACE_TCHAR *argv[])
{
int result = 0;
diff --git a/TAO/tests/Bug_2936_Regression/PersistentPOA.h b/TAO/tests/Bug_2936_Regression/PersistentPOA.h
index 4bf9951ab43..d0c4cb61542 100644
--- a/TAO/tests/Bug_2936_Regression/PersistentPOA.h
+++ b/TAO/tests/Bug_2936_Regression/PersistentPOA.h
@@ -18,16 +18,13 @@ class bug2936_Export PersistentPoa
PersistentPoa ();
/// Destructor.
- ~PersistentPoa ()
- throw ();
+ ~PersistentPoa () noexcept;
- // protected types and methods
protected:
virtual int init (int argc, ACE_TCHAR *argv[]);
virtual int fini ();
- // private methods and instance variables
private:
CORBA::ORB_var mv_orb;
PortableServer::POA_var mv_rootPOA;
diff --git a/TAO/tests/Bug_3251_Regression/PersistentPoa.cpp b/TAO/tests/Bug_3251_Regression/PersistentPoa.cpp
index ab58e626593..f5c5e4cbc49 100644
--- a/TAO/tests/Bug_3251_Regression/PersistentPoa.cpp
+++ b/TAO/tests/Bug_3251_Regression/PersistentPoa.cpp
@@ -8,8 +8,7 @@ PersistentPoa::PersistentPoa ()
{
}
-PersistentPoa::~PersistentPoa ()
- throw ()
+PersistentPoa::~PersistentPoa () noexcept
{
}
diff --git a/TAO/tests/Bug_3251_Regression/PersistentPoa.h b/TAO/tests/Bug_3251_Regression/PersistentPoa.h
index 33402ea49d1..c09e319f5bb 100644
--- a/TAO/tests/Bug_3251_Regression/PersistentPoa.h
+++ b/TAO/tests/Bug_3251_Regression/PersistentPoa.h
@@ -16,8 +16,7 @@ class bug_3251_Export PersistentPoa: public ACE_Service_Object
public:
PersistentPoa ();
- ~PersistentPoa ()
- throw ();
+ ~PersistentPoa () noexcept;
// protected types and methods
protected:
diff --git a/TAO/tests/ORB_Local_Config/Bug_2612/DllOrb.cpp b/TAO/tests/ORB_Local_Config/Bug_2612/DllOrb.cpp
index d3911bd2262..946e30b8030 100644
--- a/TAO/tests/ORB_Local_Config/Bug_2612/DllOrb.cpp
+++ b/TAO/tests/ORB_Local_Config/Bug_2612/DllOrb.cpp
@@ -24,8 +24,7 @@ DllOrb::DllOrb (int nthreads)
{
}
-DllOrb::~DllOrb ()
- throw ()
+DllOrb::~DllOrb () noexcept
{
#if defined (ACE_HAS_THREADS)
delete mp_barrier;
diff --git a/TAO/tests/ORB_Local_Config/Bug_2612/DllOrb.h b/TAO/tests/ORB_Local_Config/Bug_2612/DllOrb.h
index d89675926db..a42c9ab236d 100644
--- a/TAO/tests/ORB_Local_Config/Bug_2612/DllOrb.h
+++ b/TAO/tests/ORB_Local_Config/Bug_2612/DllOrb.h
@@ -26,7 +26,7 @@ class DllOrb_Export DllOrb
DllOrb (int nthreads = 1);
/// Destructor.
- ~DllOrb () throw ();
+ ~DllOrb () noexcept;
CORBA::ORB_ptr orb () const;
diff --git a/TAO/tests/POA/DSI/Database_i.cpp b/TAO/tests/POA/DSI/Database_i.cpp
index ffde543eed5..382c256fc04 100644
--- a/TAO/tests/POA/DSI/Database_i.cpp
+++ b/TAO/tests/POA/DSI/Database_i.cpp
@@ -358,7 +358,7 @@ DatabaseImpl::Employee::operator new (size_t size, const std::nothrow_t &)
}
void
-DatabaseImpl::Employee::operator delete (void *ptr, const std::nothrow_t&) throw ()
+DatabaseImpl::Employee::operator delete (void *ptr, const std::nothrow_t&) noexcept
{
DATABASE::instance ()->free (ptr);
}
diff --git a/TAO/tests/POA/DSI/Database_i.h b/TAO/tests/POA/DSI/Database_i.h
index a097500c96c..8948004fd4f 100644
--- a/TAO/tests/POA/DSI/Database_i.h
+++ b/TAO/tests/POA/DSI/Database_i.h
@@ -112,7 +112,7 @@ public:
/// Overloaded new operator, nothrow_t variant.
void *operator new (size_t bytes, const std::nothrow_t &nt);
- void operator delete (void *p, const std::nothrow_t&) throw ();
+ void operator delete (void *p, const std::nothrow_t&) noexcept;
void *operator new (size_t);
void operator delete (void *pointer);
diff --git a/TAO/utils/wxNamingViewer/wxAutoDialog.h b/TAO/utils/wxNamingViewer/wxAutoDialog.h
index a1e59cce11c..51292dc2ddb 100644
--- a/TAO/utils/wxNamingViewer/wxAutoDialog.h
+++ b/TAO/utils/wxNamingViewer/wxAutoDialog.h
@@ -3,15 +3,14 @@
#ifndef i_wxAutoDialog_h
#define i_wxAutoDialog_h
-
template <class D>
class WxAutoDialog
{
public:
- explicit WxAutoDialog( D* dialog) throw():dialog( dialog) {}
- ~WxAutoDialog() throw() { dialog->Destroy(); }
+ explicit WxAutoDialog( D* dialog) noexcept:dialog( dialog) {}
+ ~WxAutoDialog() noexcept { dialog->Destroy(); }
- D* operator->() const throw() { return dialog; }
+ D* operator->() const noexcept { return dialog; }
protected:
D* dialog;