mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-29 15:25:56 +08:00
fixed: extending std::runtime_error instead, as std::exception ctor is undefined. also fixed some mac warnings from inheriting runtime_error.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
//
|
||||
|
||||
XSocketAddress::XSocketAddress(EError error,
|
||||
const CString& hostname, int port) throw() :
|
||||
const CString& hostname, int port) _NOEXCEPT :
|
||||
m_error(error),
|
||||
m_hostname(hostname),
|
||||
m_port(port)
|
||||
|
||||
@@ -41,7 +41,8 @@ public:
|
||||
kBadPort //!< The port is invalid
|
||||
};
|
||||
|
||||
XSocketAddress(EError, const CString& hostname, int port) throw();
|
||||
XSocketAddress(EError, const CString& hostname, int port) _NOEXCEPT;
|
||||
virtual ~XSocketAddress() _NOEXCEPT { }
|
||||
|
||||
//! @name accessors
|
||||
//@{
|
||||
|
||||
Reference in New Issue
Block a user