
25 Aug
2008
25 Aug
'08
12:24 p.m.
Hi! I am using boost_1_36_0 manually patched with the files mentioned in http://thread.gmane.org/gmane.comp.lib.boost.user/39093/focus=39106 I thought that std::tr1::tuple was a valid mpl sequence, but this code here fails. Is this by design? ---snip--- #include <boost/tr1/tuple.hpp> #include <boost/mpl/assert.hpp> #include <boost/mpl/at.hpp> template <typename Tuple, long I> struct show_problem { typedef typename boost::mpl::at_c<Tuple, I>::type type; }; int main() { typedef std::tr1::tuple<int, int> tuple_t; typedef boost::mpl::at_c<tuple_t, 1L>::type Ouch; }