[parsec-users] Variadic Templates and Fusion Vector

Paul Keir pkeir at dcs.gla.ac.uk
Wed Mar 24 19:48:01 EDT 2010


Hello,

I'm using gcc v4.4.1 and curious about boost fusion's vector, as a replacement for gcc's tuple within a variadic class template. With the class definition below, compilation fails with the error message:
    sorry, unimplemented: cannot expand ‘Ts ...’ into a fixed-length argument list
(This error relates to the q1 line)
Can I avoid the error? Is vector an appropriate replacement for tuple?

using namespace boost::fusion;

template <typename T, typename... Ts>
class Foo {
public:
  vector<T,Ts...> q1;
  std::tuple<T,Ts...> q2;
  Foo(T t, Ts... ts) {}
};

Cheers,
Graham

The University of Glasgow, charity number SC004401


More information about the parsec-users mailing list