Mercurial > code
changeset 385:b732c4431f7d
Socket: add default constructor everywhere
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 23 Jun 2015 15:14:42 +0200 |
parents | 2ce3d1578339 |
children | 743b3a1c71c8 |
files | C++/modules/Socket/Socket.h |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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<Address>::Socket; /** + * Default constructor. + */ + SocketAbstractTcp() = default; + + /** * Construct a standard TCP socket. The type is automatically * set to SOCK_STREAM. * @@ -628,6 +638,11 @@ using SocketAbstractTcp<Address>::SocketAbstractTcp; /** + * Default constructor. + */ + SocketTcp() = default; + + /** * Connect to an end point. * * @param address the address @@ -819,6 +834,11 @@ using Socket<Address>::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<Address>::SocketAbstractUdp; /** + * Default constructor. + */ + SocketUdp() = default; + + /** * @copydoc SocketAbstractUdp<Address>::recv */ using SocketAbstractUdp<Address>::recvfrom;