[parsec-users] Variadic Templates and Fusion Vector

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


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 {
  vector<T,Ts...> q1;
  std::tuple<T,Ts...> q2;
  Foo(T t, Ts... ts) {}


The University of Glasgow, charity number SC004401

More information about the parsec-users mailing list