Created
April 1, 2016 01:08
-
-
Save zhuowei/7572228e6b7e8d757b0dedebb2451137 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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