compile.fusion.vector.erb.cpp 423 B

123456789101112131415
  1. // Copyright Louis Dionne 2013-2017
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
  4. #include <boost/fusion/include/make_vector.hpp>
  5. #include <boost/fusion/include/push_back.hpp>
  6. template <int i>
  7. struct x { };
  8. int main() {
  9. auto vector = <%= fusion_vector((1..input_size).map { |n| "x<#{n}>{}" }) %>;
  10. (void)vector;
  11. }