15 #ifndef FRAMEWORK_NO_BOOST
16 #include <boost/crc.hpp>
37 template <
typename... Args>
39 : p_tSum(std::forward <Args> (args)...)
46 bool write (
char const* s, std::size_t n)
48 p_tSum.process_bytes(s, n);
55 template <
typename... Args>
57 decltype(std::declval <T> ().
checksum(std::forward <Args> (args)...))
59 return p_tSum.checksum(std::forward <Args> (args)...);
65 template <
typename... Args>
67 decltype(std::declval <T> ().
reset(std::forward <Args> (args)...))
69 return p_tSum.reset(std::forward <Args> (args)...);
76 #ifndef FRAMEWORK_NO_BOOST
77 using crc_16_wrapper = crc_wrapper <boost::crc_16_type>;
78 using crc_ccitt_wrapper = crc_wrapper <boost::crc_ccitt_type>;
79 using crc_xmodem_wrapper = crc_wrapper <boost::crc_xmodem_type>;
80 using crc_32_wrapper = crc_wrapper <boost::crc_32_type>;