git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1517
270642c3-0616-0410-b53a-bc976706d245
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
+senf::EUI64 const senf::EUI64::None;
+
prefix_ senf::EUI64 senf::EUI64::from_string(std::string const & s)
{
EUI64 eui (senf::noinit);
///\name Structors and default members
///@{
+ static EUI64 const None; ///< The empty (0) address
+
// default copy constructor
// default copy assignment
// default destructor
BOOST_CHECK_THROW( senf::EUI64::from_string("12:20:30:40:50:60:70:80:90"),
senf::AddressSyntaxException );
+ BOOST_CHECK_EQUAL( senf::EUI64::None, senf::EUI64(0) );
+ BOOST_CHECK(! senf::EUI64::None );
+
{
std::stringstream ss;
ss << std::uppercase << eui;
ss << "01:02:03:04-05:06:07:108";
BOOST_CHECK( (ss >> eui).fail() );
}
-
}
///////////////////////////////cc.e////////////////////////////////////////