]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/functional/hash/test/hash_no_ext_macro_1.cpp
2 // Copyright 2006-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)
6 #include "./config.hpp"
8 #if defined(BOOST_HASH_TEST_EXTENSIONS)
10 // Include header without BOOST_HASH_NO_EXTENSIONS defined
11 # if defined(BOOST_HASH_NO_EXTENSIONS)
12 # undef BOOST_HASH_NO_EXTENSIONS
14 # include <boost/functional/hash.hpp>
16 // Include header with BOOST_HASH_NO_EXTENSIONS defined
17 # define BOOST_HASH_NO_EXTENSIONS
18 # include <boost/functional/hash.hpp>
21 #include <boost/detail/lightweight_test.hpp>
26 #if defined(BOOST_HASH_TEST_EXTENSIONS)
32 BOOST_HASH_TEST_NAMESPACE::hash
<std::deque
<int> > hasher
;
33 BOOST_TEST(hasher(x
) == BOOST_HASH_TEST_NAMESPACE::hash_value(x
));
36 return boost::report_errors();