From: tho Date: Tue, 19 Apr 2011 11:41:35 +0000 (+0000) Subject: Utils/RestrictedInt: export Base and Tag template types X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=0e87ffe1cd4de41a27a29c427d7538789e4e3a43;p=senf.git Utils/RestrictedInt: export Base and Tag template types git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1784 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/Socket/Protocols/Raw/MACAddress.cc b/senf/Socket/Protocols/Raw/MACAddress.cc index 121b0be..46eb7aa 100644 --- a/senf/Socket/Protocols/Raw/MACAddress.cc +++ b/senf/Socket/Protocols/Raw/MACAddress.cc @@ -28,8 +28,6 @@ // Custom includes #include -#include -#include #include #include #include "ParseString.hh" @@ -52,7 +50,7 @@ prefix_ senf::MACAddress senf::MACAddress::from_string(std::string const & s) prefix_ senf::MACAddress senf::MACAddress::from_eui64(senf::EUI64 const & eui) { if (eui[3] != 0xffu || eui[4] != 0xfeu) - throw AddressSyntaxException() << "EUI64 is not MAC compatible: " << eui; + throw AddressSyntaxException() << ": EUI64 is not MAC compatible: " << eui; MACAddress mac (senf::noinit); mac[0] = eui[0]; mac[1] = eui[1]; diff --git a/senf/Utils/RestrictedInt.hh b/senf/Utils/RestrictedInt.hh index 3ceacc9..ded9737 100644 --- a/senf/Utils/RestrictedInt.hh +++ b/senf/Utils/RestrictedInt.hh @@ -49,6 +49,9 @@ namespace senf { senf::comparable_safe_bool< RestrictedInt > > > > > { public: + typedef Base base_type; + typedef Tag tag_type; + explicit RestrictedInt(Base value) : value_ (value) {} RestrictedInt() : value_ () {}