boost_no_cv_spec.ipp 851 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // (C) Copyright John Maddock 2001.
  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_CV_SPECIALIZATIONS
  7. // TITLE: template specialisations of cv-qualified types
  8. // DESCRIPTION: If template specialisations for cv-qualified types
  9. // conflict with a specialisation for a cv-unqualififed type.
  10. namespace boost_no_cv_specializations{
  11. template <class T>
  12. struct is_int
  13. {
  14. };
  15. template <>
  16. struct is_int<int>
  17. {};
  18. template <>
  19. struct is_int<const int>
  20. {};
  21. template <>
  22. struct is_int<volatile int>
  23. {};
  24. template <>
  25. struct is_int<const volatile int>
  26. {};
  27. int test()
  28. {
  29. return 0;
  30. }
  31. }