vector_construction.cpp 844 B

12345678910111213141516171819202122232425262728
  1. /*=============================================================================
  2. Copyright (c) 2008 Dan Marsden
  3. Use modification and distribution are subject to the Boost Software
  4. License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt).
  6. ==============================================================================*/
  7. #include <boost/fusion/include/vector.hpp>
  8. namespace fusion = boost::fusion;
  9. namespace
  10. {
  11. template<int n, int batch>
  12. struct distinct
  13. {};
  14. template<int batch>
  15. void test()
  16. {
  17. fusion::vector<
  18. distinct<0, batch>, distinct<1, batch>, distinct<2, batch>, distinct<3, batch>, distinct<4, batch>,
  19. distinct<5, batch>, distinct<6, batch>, distinct<7, batch>, distinct<8, batch>, distinct<9, batch> > v;
  20. }
  21. }
  22. #include "./driver.hpp"