我有一个 boost::hana::set 类型,想用它创建一个映射,其中的值是布尔值。
// I have a hana set:
auto my_set = hana::make_set(hana::type_c< int >, hana::type_c< float > ...);
// and want to transform it to a map with a given runtime value as values:
auto wanted_map = hana::make_map(
hana::make_pair(hana::type_c< int >, false),
hana::make_pair(hana::type_c< float >, false),
...
);