hash_no_ext_fail_test.cpp 673 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2006-2009 Daniel James.
  2. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #include "./config.hpp"
  5. // Simple test to make sure BOOST_HASH_NO_EXTENSIONS does disable extensions
  6. // (or at least one of them).
  7. #if !defined(BOOST_HASH_NO_EXTENSIONS)
  8. # define BOOST_HASH_NO_EXTENSIONS
  9. #endif
  10. #ifdef BOOST_HASH_TEST_STD_INCLUDES
  11. # include <functional>
  12. #else
  13. # include <boost/container_hash/hash.hpp>
  14. #endif
  15. template <class T> void ignore(T const&) {}
  16. int main()
  17. {
  18. BOOST_HASH_TEST_NAMESPACE::hash< int[10] > hasher;
  19. ignore(hasher);
  20. return 0;
  21. }