Reference: Modern C++ Design
Many times an enum value is calculated via a previous enum value. It can be shown that this "generic meta-programming" is Turing Complete, which means in theory, it can basically compute what a typical computer could compute. In reality, the recursion is limited to a certain number of times.
No comments:
Post a Comment