BOOST_PP_REPEAT with array
问题 I have struct like : struct E1 { typedef boost::tuple< boost::optional< N::type_A >, // N - namespace boost::optional< N::type_B >, ................... boost::optional< N::type_X > //arbitrary number of, maximal is 7 > data_type; // for access by name boost::optional<N::type_A> const& type_A() const { return boost::get<0>(data); } boost::optional<N::type_B> const& type_B() const { return boost::get<1>(data); } ..................................... boost::optional<N::type_X> const& type_X()