|
Boost : |
From: John Maddock (john_at_[hidden])
Date: 2006-12-20 04:46:40
Javier Estrada wrote:
> I believe the function validate_card_format should take a const
> std::string& instead of a const std::string
> http://www.boost.org/libs/regex/doc/introduction.html
>
> bool validate_card_format(const std::string s)
> {
> static const boost::regex e("(\\d{4}[- ]){3}\\d{4}");
> return regex_match(s, e);
> }
Fixed in cvs, thanks for spotting that, John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk