scan.h: declare operator() of std::set compare function const