Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-04-30 03:18:31


Author: danieljames
Date: 2008-04-30 03:18:31 EDT (Wed, 30 Apr 2008)
New Revision: 44917
URL: http://svn.boost.org/trac/boost/changeset/44917

Log:
Support compilers without ADL in the compile tests.
Text files modified:
   branches/unordered/trunk/libs/unordered/test/objects/minimal.hpp | 20 ++++++++++++++++----
   1 files changed, 16 insertions(+), 4 deletions(-)

Modified: branches/unordered/trunk/libs/unordered/test/objects/minimal.hpp
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/objects/minimal.hpp (original)
+++ branches/unordered/trunk/libs/unordered/test/objects/minimal.hpp 2008-04-30 03:18:31 EDT (Wed, 30 Apr 2008)
@@ -62,10 +62,6 @@
         return false;
     }
 
- std::size_t hash_value(copy_constructible_equality_comparable) {
- return 1;
- }
-
     class default_copy_constructible
     {
     public:
@@ -270,6 +266,22 @@
 }
 }
 
+#if defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP)
+namespace boost {
+#else
+namespace test {
+namespace minimal {
+#endif
+ std::size_t hash_value(test::minimal::copy_constructible_equality_comparable) {
+ return 1;
+ }
+#if !defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP)
+}}
+#else
+}
+#endif
+
+
 #if defined(BOOST_MSVC)
 #pragma warning(pop)
 #endif


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