Go to the documentation of this file.00001 #include "osl/misc/mask.h"
00002 #include <boost/static_assert.hpp>
00003 #include <iostream>
00004 #include <iomanip>
00005
00006 namespace osl
00007 {
00008
00009 #if OSL_WORDSIZE == 64
00010 BOOST_STATIC_ASSERT(sizeof(mask_t) == 8);
00011 #elif OSL_WORDSIZE == 32
00012 BOOST_STATIC_ASSERT(sizeof(mask_t) == 4);
00013 #endif
00014 }
00015
00016 std::ostream& osl::misc::operator<<(std::ostream& os,const osl::mask_t& mask)
00017 {
00018 return os << "mask(0x" << std::setbase(16) <<
00019 mask.value() << std::setbase(10) << ')';
00020 }
00021
00022
00023
00024
00025