Ejemplo n.º 1
0
std::size_t knitting_options_hasher::hash(const knitting_options& v) {
    std::size_t seed(0);

    combine(seed, v.verbose());
    combine(seed, v.input());
    combine(seed, v.output());
    combine(seed, v.cpp());

    return seed;
}
Ejemplo n.º 2
0
std::size_t knitting_options_hasher::hash(const knitting_options& v) {
    std::size_t seed(0);

    combine(seed, v.verbose());
    combine(seed, hash_boost_filesystem_path(v.target()));
    combine(seed, v.delete_extra_files());
    combine(seed, v.force_write());
    combine(seed, hash_std_vector_std_string(v.ignore_patterns()));
    combine(seed, hash_boost_filesystem_path(v.output_directory_path()));

    return seed;
}