boost_no_std_typeinfo.ipp 666 B

1234567891011121314151617181920212223242526
  1. // (C) Copyright Peter Dimov 2007.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for most recent version.
  6. // MACRO: BOOST_NO_STD_TYPEINFO
  7. // TITLE: type_info not in namespace std
  8. // DESCRIPTION: The <typeinfo> header declares type_info in the global namespace instead of std
  9. #include <typeinfo>
  10. namespace boost_no_std_typeinfo
  11. {
  12. void quiet_warning(const std::type_info*){}
  13. int test()
  14. {
  15. std::type_info * p = 0;
  16. quiet_warning(p);
  17. return 0;
  18. }
  19. }