mirror of
https://github.com/boostorg/hana.git
synced 2026-01-21 17:02:25 +00:00
24 lines
556 B
C++
24 lines
556 B
C++
// Copyright Louis Dionne 2013-2016
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
|
|
|
|
#include <boost/fusion/include/make_map.hpp>
|
|
|
|
#include "../../at_key/pair.hpp"
|
|
namespace fusion = boost::fusion;
|
|
|
|
|
|
template <int i>
|
|
struct x { };
|
|
|
|
struct undefined { };
|
|
|
|
int main() {
|
|
auto map = fusion::make_map<<%=
|
|
(1..input_size).map { |n| "x<#{n}>" }.join(', ')
|
|
%>>(<%=
|
|
(1..input_size).map { |n| "undefined{}" }.join(', ')
|
|
%>);
|
|
(void)map;
|
|
}
|