diff --git a/Socket/Protocols/INet/INet4Address.hh b/Socket/Protocols/INet/INet4Address.hh index d00fb8667d11a34d8b671e615b7cf5d45f7edc96..b2d466d234e2c34708d16654b98fee91b8bbf4d7 100644 --- a/Socket/Protocols/INet/INet4Address.hh +++ b/Socket/Protocols/INet/INet4Address.hh @@ -42,6 +42,12 @@ namespace senf { INet4Address represents a simple IP address. It is modelled as a fixed-size container/sequence of 4 bytes. + \implementation We awkwardly need to use static named constructors (<tt>from_</tt> members) + instead of ordinarily overloaded constructors for one simple reason: <tt>char *</tt> + doubles as string literal and as arbitrary data iterator. The iterator constructor can + therefore not be distinguished from initialization with a string literal. Therefore we + need to disambiguate using the named constructors. + \todo Add additional classes for CIDR addresses and networks and network math. \ingroup addr_group */ diff --git a/Socket/Protocols/INet/INet6Address.hh b/Socket/Protocols/INet/INet6Address.hh index 2b93f7b6a61dacc59f0650c95ae9c3e74eaa82ec..097022b1f0f75c133e512a438701a391bacdbaaf 100644 --- a/Socket/Protocols/INet/INet6Address.hh +++ b/Socket/Protocols/INet/INet6Address.hh @@ -81,6 +81,12 @@ namespace senf { \see CheckINet6Network Helper to check address against an arbitrary fixed network prefix \ingroup addr_group + + \implementation We awkwardly need to use static named constructors (<tt>from_</tt> members) + instead of ordinarily overloaded constructors for one simple reason: <tt>char *</tt> + doubles as string literal and as arbitrary data iterator. The iterator constructor can + therefore not be distinguished from initialization with a string literal. Therefore we + need to disambiguate using the named constructors. */ class INet6Address : public boost::array<boost::uint8_t,16>, diff --git a/Socket/Protocols/Raw/MACAddress.hh b/Socket/Protocols/Raw/MACAddress.hh index 367839d0037b3593f71297c4a67066a26cbd2c57..8511bb224ffe912d7777194e65a62c1d32b98d72 100644 --- a/Socket/Protocols/Raw/MACAddress.hh +++ b/Socket/Protocols/Raw/MACAddress.hh @@ -46,6 +46,8 @@ namespace senf { doubles as string literal and as arbitrary data iterator. The iterator constructor can therefore not be distinguished from initialization with a string literal. Therefore we need to disambiguate using the named constructors. + + \ingroup addr_group */ struct MACAddress : public boost::array<boost::uint8_t,6>,