[mpl|fusion|tr1]mpl::at_c<std::tr1::tuple<...>, I>::type fails

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

Markus Werle
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
#include #include template
struct show_problem { typedef typename boost::mpl::at_c ::type type; }; int main() { typedef std::tr1::tuple
tuple_t; typedef boost::mpl::at_c
::type Ouch; }
It's std. So it has to make a difference: typedef std::tr1::tuple_element< 1L, tuple_t>::type OK; Looks like we end with a plethora of different compile-time sequences all using different element access semantics, leaving us with an uncomfortable feeling about the TR1 ... where will this end? Markus

Markus Werle wrote:
Markus Werle
writes: 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
#include #include template
struct show_problem { typedef typename boost::mpl::at_c ::type type; }; int main() { typedef std::tr1::tuple
tuple_t; typedef boost::mpl::at_c
::type Ouch; } It's std. So it has to make a difference:
typedef std::tr1::tuple_element< 1L, tuple_t>::type OK;
Looks like we end with a plethora of different compile-time sequences all using different element access semantics, leaving us with an uncomfortable feeling about the TR1 ... where will this end?
Markus
Did you #include
participants (2)
-
John C. Femiani
-
Markus Werle