Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 1 | |
| 2 | // Copyright 2005-2009 Daniel James. |
| 3 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 4 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 5 | |
| 6 | #include "./config.hpp" |
| 7 | |
| 8 | #define BOOST_HASH_TEST_NAMESPACE ndnboost |
| 9 | #define BOOST_HASH_NO_EXTENSIONS |
| 10 | #include <boost/functional/hash.hpp> |
| 11 | #include <boost/detail/lightweight_test.hpp> |
| 12 | |
| 13 | extern int f(std::size_t, int*); |
| 14 | |
| 15 | int main() { |
| 16 | BOOST_HASH_TEST_NAMESPACE::hash<int*> ptr_hasher; |
| 17 | int x = 55; |
| 18 | BOOST_TEST(!f(ptr_hasher(&x), &x)); |
| 19 | return ndnboost::report_errors(); |
| 20 | } |