# HG changeset patch # User David Demelier # Date 1435065282 -7200 # Node ID b732c4431f7d5707c69a922a59e17f5799d372a1 # Parent 2ce3d1578339f98b0d360147f4cb57ed6d630313 Socket: add default constructor everywhere diff -r 2ce3d1578339 -r b732c4431f7d C++/modules/Socket/Socket.h --- a/C++/modules/Socket/Socket.h Tue Jun 23 14:54:53 2015 +0200 +++ b/C++/modules/Socket/Socket.h Tue Jun 23 15:14:42 2015 +0200 @@ -485,6 +485,11 @@ using SocketAbstract::SocketAbstract; /** + * Default constructor. + */ + Socket() = default; + + /** * Bind to an address. * * @param address the address @@ -540,6 +545,11 @@ using Socket
::Socket; /** + * Default constructor. + */ + SocketAbstractTcp() = default; + + /** * Construct a standard TCP socket. The type is automatically * set to SOCK_STREAM. * @@ -628,6 +638,11 @@ using SocketAbstractTcp
::SocketAbstractTcp; /** + * Default constructor. + */ + SocketTcp() = default; + + /** * Connect to an end point. * * @param address the address @@ -819,6 +834,11 @@ using Socket
::Socket; /** + * Default constructor. + */ + SocketAbstractUdp() = default; + + /** * Construct a UDP socket. The type is automatically set to SOCK_DGRAM. * * @param domain the domain (e.g AF_INET) @@ -899,6 +919,11 @@ using SocketAbstractUdp
::SocketAbstractUdp; /** + * Default constructor. + */ + SocketUdp() = default; + + /** * @copydoc SocketAbstractUdp
::recv */ using SocketAbstractUdp
::recvfrom;