От: | Sashaka | ||
Дата: | 27.09.13 12:21 | ||
Оценка: |
boost::mpl::vector< A, B, C > types;
unsigned index = getTypeIndex<A>(types);
От: | Evgeny.Panasyuk | ||
Дата: | 27.09.13 12:33 | ||
Оценка: | 6 (1) |
static_assert(boost::mpl::find<boost::mpl::vector<int, char, unsigned>, unsigned>::type::pos::value == 2, "");