|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73255 - in sandbox/bloom_filter/trunk/boost/bloom_filter: detail hash
From: cpp.cabrera_at_[hidden]
Date: 2011-07-20 05:37:00
Author: alejandro
Date: 2011-07-20 05:37:00 EDT (Wed, 20 Jul 2011)
New Revision: 73255
URL: http://svn.boost.org/trac/boost/changeset/73255
Log:
Corrected an error in murmurhash3 - out[1] -> out[0]. Added initial support for throwing bin error exceptions for counting_bloom_filter.
Added:
sandbox/bloom_filter/trunk/boost/bloom_filter/detail/exceptions.hpp (contents, props changed)
Text files modified:
sandbox/bloom_filter/trunk/boost/bloom_filter/hash/murmurhash3.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Added: sandbox/bloom_filter/trunk/boost/bloom_filter/detail/exceptions.hpp
==============================================================================
--- (empty file)
+++ sandbox/bloom_filter/trunk/boost/bloom_filter/detail/exceptions.hpp 2011-07-20 05:37:00 EDT (Wed, 20 Jul 2011)
@@ -0,0 +1,39 @@
+//////////////////////////////////////////////////////////////////////////////
+//
+// (C) Copyright Alejandro Cabrera 2011.
+// 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)
+//
+// See http://www.boost.org/libs/bloom_filter for documentation.
+//
+//////////////////////////////////////////////////////////////////////////////
+
+#ifndef BOOST_BLOOM_FILTER_DETAIL_EXCEPTIONS_HPP
+#define BOOST_BLOOM_FILTER_DETAIL_EXCEPTIONS_HPP
+
+#include <exception>
+
+namespace boost {
+ namespace bloom_filters {
+ namespace detail {
+
+ class underflow : public std::exception {
+ virtual const char *
+ what() const throw() {
+ return "boost::bloom_filters::detail::underflow";
+ }
+ };
+
+ class overrflow : public std::exception {
+ virtual const char *
+ what() const throw() {
+ return "boost::bloom_filters::detail::overflow";
+ }
+ };
+
+ } // namespace detail
+ } // namespace bloom_filter
+} // namespace boost
+#endif
Modified: sandbox/bloom_filter/trunk/boost/bloom_filter/hash/murmurhash3.hpp
==============================================================================
--- sandbox/bloom_filter/trunk/boost/bloom_filter/hash/murmurhash3.hpp (original)
+++ sandbox/bloom_filter/trunk/boost/bloom_filter/hash/murmurhash3.hpp 2011-07-20 05:37:00 EDT (Wed, 20 Jul 2011)
@@ -73,7 +73,7 @@
dispatcher(&t, sizeof(T), Seed, &out);
- return out[1];
+ return out[0];
}
};
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