Avoid using boost inside ScanHash()