fix bitset hash support

This commit is contained in:
bolero-MURAKAMI 2012-06-19 13:18:49 +09:00
parent f00b15b8bf
commit c2a401326c
2 changed files with 28 additions and 8 deletions

View file

@ -192,6 +192,11 @@ namespace testspr {
is >> bits;
TESTSPR_ASSERT(bits == bitset_t(0xDEADBEEF));
}
// 20.5.3 hash support
// sprout::to_hash, sprout::hash
TESTSPR_BOTH_ASSERT(sprout::to_hash(bits1) == sprout::hash<bitset_t>()(bits1));
}
}
} // namespace testspr