Skip to content

Instantly share code, notes, and snippets.

@zhuowei
Created April 1, 2016 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhuowei/7572228e6b7e8d757b0dedebb2451137 to your computer and use it in GitHub Desktop.
Save zhuowei/7572228e6b7e8d757b0dedebb2451137 to your computer and use it in GitHub Desktop.
struct BlockID {
unsigned char id;
operator unsigned char() const {
return id;
}
BlockID(BlockID const& other): id(other.id) {
}
BlockID(unsigned char id_): id(id_) {
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment