boost_no_fixed_len_variadic_templates.ipp 812 B

1234567891011121314151617181920212223242526
  1. // Copyright (C) 2007 Douglas Gregor
  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_CXX11_FIXED_LENGTH_VARIADIC_TEMPLATE_EXPANSION_PACKS
  7. // TITLE: C++0x variadic templates unavailable
  8. // DESCRIPTION: The compiler does not support C++0x variadic templates
  9. namespace boost_no_cxx11_fixed_length_variadic_template_expansion_packs {
  10. template<char one, char two, char... Others> struct char_tuple {};
  11. template<char... Args> struct super_class : public char_tuple<Args...> {};
  12. int test()
  13. {
  14. super_class<'a', 'b', 'c', 'd'> sc;
  15. (void)sc;
  16. return 0;
  17. }
  18. }