C++
ttp://cppemb.blog17.fc2.com/blog-entry-42.html 転載 int x = B(0101); /* 0x05 */ template <int Bit> struct bit; template <> struct bit<0> { static const int value = 0; }; template <> struct bit<1> { static const int value = 1; }; template <unsigned long N> struct bi</unsigned></int>…