
17 Jul
2011
17 Jul
'11
10:51 p.m.
On Sat, Jul 16, 2011 at 08:58, Pierre Talbot <pierre.talbot.6114@herslibramont.be> wrote:
But each digits in the functions may have a weight. So I must passed a sequence of unsigned int to the function.
Why would the weights be specified at runtime? I'd expect to see a call that looked more like this: typedef mod10_checksum<2, 1> card_checksum; bool is_valid = verify_checksum<card_checksum>(digits.begin(), digits.end()); Why do you need the nbr_digits parameter? ~ Scott