boost_no_typeid.ipp 542 B

123456789101112131415161718192021222324
  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_TYPEID
  7. // TITLE: typeid unavailable
  8. // DESCRIPTION: The compiler does not support typeid in this mode
  9. #include <typeinfo>
  10. namespace boost_no_typeid
  11. {
  12. int test()
  13. {
  14. (void)typeid(int);
  15. return 0;
  16. }
  17. }