My favorites | Sign in
Project Home Downloads Issues
Project Information
Members
Featured
Downloads
Links

This program 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.

Daniel Gutson.

Powered by Google Project Hosting