Skip to main content

All Questions

Filter by
Sorted by
Tagged with
17 votes
8 answers
11k views

Compute the CRC32 table at compile-time [closed]

The reference implementation of CRC32 computes a lookup table at runtime: ...
2 votes
1 answer
561 views

Generate numerical permutations with conditions and template metaprogramming [closed]

This, but via template metaprogramming: template <int n> struct insanity { int[][n] permutations; } Generate all numbers with n digits (0-9) such that each ...