|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52673 - in trunk: boost/unordered/detail libs/unordered/test/unordered
From: daniel_james_at_[hidden]
Date: 2009-04-30 01:08:43
Author: danieljames
Date: 2009-04-30 01:08:40 EDT (Thu, 30 Apr 2009)
New Revision: 52673
URL: http://svn.boost.org/trac/boost/changeset/52673
Log:
Revert changes to unordered, as the test fails on most compilers.
Removed:
trunk/libs/unordered/test/unordered/detail_tests.cpp
Text files modified:
trunk/boost/unordered/detail/hash_table.hpp | 2 +-
trunk/libs/unordered/test/unordered/Jamfile.v2 | 1 -
2 files changed, 1 insertions(+), 2 deletions(-)
Modified: trunk/boost/unordered/detail/hash_table.hpp
==============================================================================
--- trunk/boost/unordered/detail/hash_table.hpp (original)
+++ trunk/boost/unordered/detail/hash_table.hpp 2009-04-30 01:08:40 EDT (Thu, 30 Apr 2009)
@@ -83,7 +83,7 @@
1610612741ul, 3221225473ul, 4294967291ul };
template<typename T>
- std::ptrdiff_t const prime_list_template<T>::length = 40;
+ std::ptrdiff_t const prime_list_template<T>::length = 28;
typedef prime_list_template<std::size_t> prime_list;
Modified: trunk/libs/unordered/test/unordered/Jamfile.v2
==============================================================================
--- trunk/libs/unordered/test/unordered/Jamfile.v2 (original)
+++ trunk/libs/unordered/test/unordered/Jamfile.v2 2009-04-30 01:08:40 EDT (Thu, 30 Apr 2009)
@@ -37,5 +37,4 @@
[ run rehash_tests.cpp ]
[ run equality_tests.cpp ]
[ run swap_tests.cpp : : : <define>BOOST_UNORDERED_SWAP_METHOD=2 ]
- [ run detail_tests.cpp ]
;
Deleted: trunk/libs/unordered/test/unordered/detail_tests.cpp
==============================================================================
--- trunk/libs/unordered/test/unordered/detail_tests.cpp 2009-04-30 01:08:40 EDT (Thu, 30 Apr 2009)
+++ (empty file)
@@ -1,32 +0,0 @@
-
-// Copyright 2009 Daniel James.
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
-// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
-
-// Test some of the library's implementation details.
-
-#include <boost/unordered_set.hpp>
-#include <boost/unordered_map.hpp>
-
-#include <boost/detail/lightweight_test.hpp>
-#include <boost/range.hpp>
-
-int main() {
-
- // Test that the prime list has the right length.
- //
- // It would have been better to automatically set the length in the header
- // but that doesn't work on some compilers. It's okay that this isn't tested
- // on all compilers, as it really only needs to be checked on one.
-
-#if !defined(BOOST_MSVC)
-
- BOOST_TEST_EQ(
- boost::end(boost::unordered_detail::prime_list::value) -
- boost::begin(boost::unordered_detail::prime_list::value),
- boost::unordered_detail::prime_list::length);
-
-#endif
-
- return boost::report_errors();
-}
\ No newline at end of file
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