
19 Dec
2006
19 Dec
'06
5:58 p.m.
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); }

20 Dec
20 Dec
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.
6749
Age (days ago)
6750
Last active (days ago)
1 comments
2 participants
participants (2)
-
Javier Estrada
-
John Maddock