Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73807 - sandbox/SOC/2011/checks/boost/checks
From: pierre.talbot.6114_at_[hidden]
Date: 2011-08-16 05:08:05


Author: trademark
Date: 2011-08-16 05:08:03 EDT (Tue, 16 Aug 2011)
New Revision: 73807
URL: http://svn.boost.org/trac/boost/changeset/73807

Log:
Add the classic modulus 11 algorithm prototype
Text files modified:
   sandbox/SOC/2011/checks/boost/checks/checks_fwd.hpp | 14 ++++++++++++++
   1 files changed, 14 insertions(+), 0 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-08-16 05:08:03 EDT (Tue, 16 Aug 2011)
@@ -92,6 +92,20 @@
 template <typename check_range>
 typename boost::checks::verhoeff_compute_algorithm::checkdigit<check_range>::type compute_verhoeff (const check_range& check_seq) ;
 
+// Modulus 11
+
+template <size_t size_expected, typename check_range>
+bool check_modulus11 (const check_range& check_seq) ;
+
+template <typename check_range>
+bool check_modulus11 (const check_range& check_seq) ;
+
+template <size_t size_expected, typename check_range>
+typename boost::checks::mod11_compute_algorithm::checkdigit<check_range>::type compute_modulus11 (const check_range& check_seq) ;
+
+template <typename check_range>
+typename boost::checks::mod11_compute_algorithm::checkdigit<check_range>::type compute_modulus11 (const check_range& check_seq) ;
+
 
 }}
 #endif \\ BOOST_CHECK_CHECKS_FWD_HPP
\ 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