Boost logo

Boost :

Subject: Re: [boost] [GSoC] Checks project - prototype hesitation
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2011-07-17 18:51:47


On Sat, Jul 16, 2011 at 08:58, Pierre Talbot
<pierre.talbot.6114_at_[hidden]> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk