Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72778 - sandbox/SOC/2011/checks/boost/checks
From: pierre.talbot.6114_at_[hidden]
Date: 2011-06-28 04:56:45


Author: trademark
Date: 2011-06-28 04:56:43 EDT (Tue, 28 Jun 2011)
New Revision: 72778
URL: http://svn.boost.org/trac/boost/changeset/72778

Log:
Add modulus prototype
Text files modified:
   sandbox/SOC/2011/checks/boost/checks/checks_fwd.hpp | 21 +++++++++++++--------
   1 files changed, 13 insertions(+), 8 deletions(-)

Modified: sandbox/SOC/2011/checks/boost/checks/checks_fwd.hpp
==============================================================================
--- sandbox/SOC/2011/checks/boost/checks/checks_fwd.hpp (original)
+++ sandbox/SOC/2011/checks/boost/checks/checks_fwd.hpp 2011-06-28 04:56:43 EDT (Tue, 28 Jun 2011)
@@ -77,17 +77,22 @@
 
 */
 
-
+namespace boost{
+ namespace checks{
 
 // Provides forward declaration of all Boost.Checks functions:
 
-bool ISBNcheck(string s);
-char ISBNcompute(string s);
-
-template <class In>
-bool Is_isbn10(In isbn_begin, In isbn_end);
+ template <class In>
+ bool Is_isbn10(In isbn_begin, In isbn_end);
 
-template <class In>
-char isbn10_check_digit(In isbn_begin, In isbn_end);
+ template <class In>
+ char isbn10_check_digit(In isbn_begin, In isbn_end);
 
+ template <class In>
+ inline bool check_luhn(const In &begin, const In &end, unsigned int nbr_digits=0);
+
+ template <class In>
+ inline In check_mod11(In begin, In end, unsigned int nbr_digits=0);
 
+ }
+}
\ No newline at end of file


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk