Utils/RestrictedInt: export Base and Tag template types
tho [Tue, 19 Apr 2011 11:41:35 +0000 (11:41 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1784 270642c3-0616-0410-b53a-bc976706d245

senf/Socket/Protocols/Raw/MACAddress.cc
senf/Utils/RestrictedInt.hh

index 121b0be..46eb7aa 100644 (file)
@@ -28,8 +28,6 @@
 
 // Custom includes
 #include <iomanip>
-#include <string>
-#include <sstream>
 #include <boost/io/ios_state.hpp>
 #include <senf/Socket/Protocols/AddressExceptions.hh>
 #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];
index 3ceacc9..ded9737 100644 (file)
@@ -49,6 +49,9 @@ namespace senf {
                  senf::comparable_safe_bool< RestrictedInt<Base,Tag> > > > > >
     {
     public:
+        typedef Base base_type;
+        typedef Tag tag_type;
+
         explicit RestrictedInt(Base value) : value_ (value) {}
         RestrictedInt() : value_ () {}