Boost logo

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
> 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, gregod at, cpdaniel at, john at