dynamic_bitset的使用
#include <iostream>
#include <boost/typeof/typeof.hpp>
#include <boost/array.hpp>
#include <boost/assign.hpp>
#include <boost/dynamic_bitset.hpp>
using namespace std;
using namespace boost;
using namespace boost::assign;
int main()
{
dynamic_bitset<> db1;
dynamic_bitset<> db2(10);
dynamic_bitset<> db3(0x16,BOOST_BINARY(10101));
dynamic_bitset<> db4(string("0100"));
dynamic_bitset<> db5(db3);
dynamic_bitset<> db6;
db6 = db4;
cout << hex << db5.to_ulong() << endl;
cout << db4[0] << db4[1] << db4[2] <<