Boost logo

Boost Users :

From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2008-08-25 08:24:51


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;
}


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net