このコードのコンパイル時:
struct any_type: boost::tuple<std::string, std::string, std::string> {
...
};
struct functor {
void operator()(const std::string& v) {
std::cout << v << std::endl;
}
};
int main() {
any_type type;
boost::fusion::for_each(type, functor());
}
エラーが発生します:「structany_type」に「category」という名前のタイプがないのはなぜですか?boost.tupleから継承したい。