Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73856 - in trunk: boost/unordered/detail libs/unordered/test/unordered
From: dnljms_at_[hidden]
Date: 2011-08-17 17:29:41


Author: danieljames
Date: 2011-08-17 17:29:41 EDT (Wed, 17 Aug 2011)
New Revision: 73856
URL: http://svn.boost.org/trac/boost/changeset/73856

Log:
Unordered: Fix some test failures.
Text files modified:
   trunk/boost/unordered/detail/table.hpp | 2 +-
   trunk/libs/unordered/test/unordered/compile_tests.hpp | 4 +++-
   2 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/boost/unordered/detail/table.hpp
==============================================================================
--- trunk/boost/unordered/detail/table.hpp (original)
+++ trunk/boost/unordered/detail/table.hpp 2011-08-17 17:29:41 EDT (Wed, 17 Aug 2011)
@@ -143,7 +143,7 @@
             return double_to_size_t(ceil(
                     static_cast<double>(this->mlf_) *
                     static_cast<double>(this->bucket_count_)
- )) - 1;
+ ));
 
         }
 

Modified: trunk/libs/unordered/test/unordered/compile_tests.hpp
==============================================================================
--- trunk/libs/unordered/test/unordered/compile_tests.hpp (original)
+++ trunk/libs/unordered/test/unordered/compile_tests.hpp 2011-08-17 17:29:41 EDT (Wed, 17 Aug 2011)
@@ -144,7 +144,9 @@
 #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();


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk