Use filter iterator for skipping value not usefull for the checksum (such as dash, ...). The file filter.hpp provide several predicates (digit_filter, digitx_filter).