Hi,
I can't figure out why the following code generates a compile error
with gcc 3.4:
#include
#include
#include
template
typename boost::tuples::element::type::value,T>::type
foo(E e,T t)
{
return t.get<0>();
}
int main()
{
typedef boost::mpl::vector_c elements;
boost::tuple<int> t(1);
foo(elements(),t);
}
main.cpp: In function `typename boost::tuples::element<
boost::mpl::at_c::#`typename_type' not supported by
pp_cxx_unqualified_id#::value, T>::type foo(E, T)':
main.cpp:10: error: expected primary-expression before ')' token
main.cpp: In function `typename boost::tuples::element<
boost::mpl::at_c::#`typename_type' not supported by
pp_cxx_unqualified_id#::value, T>::type foo(E, T) [with E =
boost::mpl::vector_c, T = boost::tuples::tuple]':
main.cpp:17: instantiated from here
main.cpp:10: error: invalid use of member (did you forget the `&' ?)