Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81787 - in trunk: boost/functional/hash libs/functional/hash/test libs/functional/hash/test/extra
From: dnljms_at_[hidden]
Date: 2012-12-08 04:19:25


Author: danieljames
Date: 2012-12-08 04:19:24 EST (Sat, 08 Dec 2012)
New Revision: 81787
URL: http://svn.boost.org/trac/boost/changeset/81787

Log:
Hash: Detab.
Text files modified:
   trunk/boost/functional/hash/hash.hpp | 6 +-
   trunk/libs/functional/hash/test/extra/check_float_funcs.cpp | 2
   trunk/libs/functional/hash/test/hash_enum_test.cpp | 80 ++++++++++++++++++++--------------------
   3 files changed, 44 insertions(+), 44 deletions(-)

Modified: trunk/boost/functional/hash/hash.hpp
==============================================================================
--- trunk/boost/functional/hash/hash.hpp (original)
+++ trunk/boost/functional/hash/hash.hpp 2012-12-08 04:19:24 EST (Sat, 08 Dec 2012)
@@ -94,7 +94,7 @@
 
     template <typename T>
     typename boost::enable_if<boost::is_enum<T>, std::size_t>::type
- hash_value(T);
+ hash_value(T);
 
 #if !BOOST_WORKAROUND(__DMC__, <= 0x848)
     template <class T> std::size_t hash_value(T* const&);
@@ -187,9 +187,9 @@
 
     template <typename T>
     typename boost::enable_if<boost::is_enum<T>, std::size_t>::type
- hash_value(T v)
+ hash_value(T v)
     {
- return static_cast<std::size_t>(v);
+ return static_cast<std::size_t>(v);
     }
 
     // Implementation by Alberto Barbati and Dave Harris.

Modified: trunk/libs/functional/hash/test/extra/check_float_funcs.cpp
==============================================================================
--- trunk/libs/functional/hash/test/extra/check_float_funcs.cpp (original)
+++ trunk/libs/functional/hash/test/extra/check_float_funcs.cpp 2012-12-08 04:19:24 EST (Sat, 08 Dec 2012)
@@ -55,4 +55,4 @@
     int (*fpc3)(long double) = std::fpclassify;
 
 #endif
-}
\ No newline at end of file
+}

Modified: trunk/libs/functional/hash/test/hash_enum_test.cpp
==============================================================================
--- trunk/libs/functional/hash/test/hash_enum_test.cpp (original)
+++ trunk/libs/functional/hash/test/hash_enum_test.cpp 2012-12-08 04:19:24 EST (Sat, 08 Dec 2012)
@@ -15,49 +15,49 @@
 #include "./compile_time.hpp"
 
 namespace test {
- enum enum_override { enum_override1, enum_override2 };
- std::size_t hash_value(enum_override) { return 896532; }
+ enum enum_override { enum_override1, enum_override2 };
+ std::size_t hash_value(enum_override) { return 896532; }
 
- enum enum1 { enum1a };
- enum enum2 { enum2a, enum2b };
- enum enum3 { enum3a = 574, enum3b };
- enum enum4 { enum4a = -12574, enum4b };
+ enum enum1 { enum1a };
+ enum enum2 { enum2a, enum2b };
+ enum enum3 { enum3a = 574, enum3b };
+ enum enum4 { enum4a = -12574, enum4b };
 }
 
 int main() {
- compile_time_tests((test::enum1*) 0);
- compile_time_tests((test::enum2*) 0);
- compile_time_tests((test::enum3*) 0);
- compile_time_tests((test::enum4*) 0);
- compile_time_tests((test::enum_override*) 0);
-
- HASH_NAMESPACE::hash<test::enum1> hash1;
- HASH_NAMESPACE::hash<test::enum2> hash2;
- HASH_NAMESPACE::hash<test::enum3> hash3;
- HASH_NAMESPACE::hash<test::enum4> hash4;
-
- BOOST_TEST(hash1(test::enum1a) == hash1(test::enum1a));
-
- BOOST_TEST(hash2(test::enum2a) == hash2(test::enum2a));
- BOOST_TEST(hash2(test::enum2a) != hash2(test::enum2b));
- BOOST_TEST(hash2(test::enum2b) == hash2(test::enum2b));
-
- BOOST_TEST(hash3(test::enum3a) == hash3(test::enum3a));
- BOOST_TEST(hash3(test::enum3a) != hash3(test::enum3b));
- BOOST_TEST(hash3(test::enum3b) == hash3(test::enum3b));
-
- BOOST_TEST(hash4(test::enum4a) == hash4(test::enum4a));
- BOOST_TEST(hash4(test::enum4a) != hash4(test::enum4b));
- BOOST_TEST(hash4(test::enum4b) == hash4(test::enum4b));
-
- HASH_NAMESPACE::hash<test::enum_override> hash_override;
-
- BOOST_TEST(hash_override(test::enum_override1) ==
- hash_override(test::enum_override1));
- BOOST_TEST(hash_override(test::enum_override1) ==
- hash_override(test::enum_override2));
- BOOST_TEST(hash_override(test::enum_override1) ==
- hash_override(test::enum_override1));
+ compile_time_tests((test::enum1*) 0);
+ compile_time_tests((test::enum2*) 0);
+ compile_time_tests((test::enum3*) 0);
+ compile_time_tests((test::enum4*) 0);
+ compile_time_tests((test::enum_override*) 0);
+
+ HASH_NAMESPACE::hash<test::enum1> hash1;
+ HASH_NAMESPACE::hash<test::enum2> hash2;
+ HASH_NAMESPACE::hash<test::enum3> hash3;
+ HASH_NAMESPACE::hash<test::enum4> hash4;
+
+ BOOST_TEST(hash1(test::enum1a) == hash1(test::enum1a));
+
+ BOOST_TEST(hash2(test::enum2a) == hash2(test::enum2a));
+ BOOST_TEST(hash2(test::enum2a) != hash2(test::enum2b));
+ BOOST_TEST(hash2(test::enum2b) == hash2(test::enum2b));
+
+ BOOST_TEST(hash3(test::enum3a) == hash3(test::enum3a));
+ BOOST_TEST(hash3(test::enum3a) != hash3(test::enum3b));
+ BOOST_TEST(hash3(test::enum3b) == hash3(test::enum3b));
+
+ BOOST_TEST(hash4(test::enum4a) == hash4(test::enum4a));
+ BOOST_TEST(hash4(test::enum4a) != hash4(test::enum4b));
+ BOOST_TEST(hash4(test::enum4b) == hash4(test::enum4b));
+
+ HASH_NAMESPACE::hash<test::enum_override> hash_override;
+
+ BOOST_TEST(hash_override(test::enum_override1) ==
+ hash_override(test::enum_override1));
+ BOOST_TEST(hash_override(test::enum_override1) ==
+ hash_override(test::enum_override2));
+ BOOST_TEST(hash_override(test::enum_override1) ==
+ hash_override(test::enum_override1));
 
- return boost::report_errors();
+ return boost::report_errors();
 }


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