Unordered: Fix some test failures.

[SVN r73856]
This commit is contained in:
Daniel James
2011-08-17 21:29:41 +00:00
parent ce779452ba
commit e3353a445a
2 changed files with 4 additions and 2 deletions

View File

@ -143,7 +143,7 @@ namespace boost { namespace unordered { namespace detail {
return double_to_size_t(ceil(
static_cast<double>(this->mlf_) *
static_cast<double>(this->bucket_count_)
)) - 1;
));
}

View File

@ -144,7 +144,9 @@ void unordered_destructible_test(X&)
#if !defined(BOOST_NO_RVALUE_REFERENCES)
X x2(rvalue_default<X>());
X x3 = rvalue_default<X>();
x2 = rvalue_default<X>();
// This can only be done if propagate_on_container_move_assignment::value
// is true.
// x2 = rvalue_default<X>();
#endif
X* ptr = new X();