boost_no_array_type_spec.ipp 748 B

123456789101112131415161718192021222324252627282930
  1. // (C) Copyright John Maddock 2001.
  2. // (C) Copyright Aleksey Gurtovoy 2003.
  3. // Use, modification and distribution are subject to the
  4. // Boost Software License, Version 1.0. (See accompanying file
  5. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. // See http://www.boost.org/libs/config for most recent version.
  7. // MACRO: BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS
  8. // TITLE: template specialisations of array types
  9. // DESCRIPTION: If the compiler cannot handle template specialisations
  10. // for array types
  11. namespace boost_no_array_type_specializations{
  12. template< typename T > struct is_array
  13. {
  14. };
  15. template< typename T, int N > struct is_array< T[N] >
  16. {
  17. };
  18. int test()
  19. {
  20. return 0;
  21. }
  22. }