
20 Dec
2006
20 Dec
'06
9:46 a.m.
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.