资 源 简 介
This metaprogram uses the C++ Template Metaprogramming technique to calculate a sequence of Hamming numbers (aka Regular Numbers, aka Ugly Numbers).
Notes:
* Vary the number of iterations in the main() function to obtain more numbers
* use the -ftemplate-depth option in g++ to allow higher recursion level (e.g. -ftemplate-depth-900)
JUST ADDED: My SHA1 example (educational) version of Linus Torvald"s git SHA1 implementation, also using the TMP technique. Check the downloads.
Donations
This code is maintained at FuDePAN, an NGO/NPO for bioinformatics research. If you find it useful either to understand C++ or to teach, please consider to donate so we can keep up the research and maintenance.
[![](https://www.paypal.com/enUS/i/btn/btndonateCCLG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=donations&business=BKPL5FYMLGXFQ&lc=AR&am