1 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) 5 6 #include "./config.hpp" 7 8 // Simple test to make sure BOOST_HASH_NO_EXTENSIONS does disable extensions 9 // (or at least one of them). 10 #if !defined(BOOST_HASH_NO_EXTENSIONS) 11 # define BOOST_HASH_NO_EXTENSIONS 12 #endif 13 14 #ifdef BOOST_HASH_TEST_STD_INCLUDES 15 # include <functional> 16 #else 17 # include <boost/container_hash/hash.hpp> 18 #endif 19 ignore(T const &)20template <class T> void ignore(T const&) {} 21 main()22int main() 23 { 24 BOOST_HASH_TEST_NAMESPACE::hash< int[10] > hasher; 25 ignore(hasher); 26 27 return 0; 28 } 29