// check if window contains a whole number of chars
if((window_size_in_bits&0b111)!=0)
throwstd::logic_error("The fingerprinting window doesn't contain a whole number of chars (counting the bits), so it doesn't make sense to return it as a string.");
#ifndef NDEBUG
if(window.size()!=window_size_in_bits)
throwstd::logic_error("False match! The sliding window isn't even filled yet, which means you matched the pattern of a substring shorter than the pattern. This case should be handled/avoided elsewhere, so we throw an error.");