
15 Jan
2007
15 Jan
'07
7:43 p.m.
If I have a typedef fusion::tuple<X, Y, Z> T; can I somehow create a T instance like T t(1, "hello"); and by that I mean that each of T's elements (of types X, Y and Z) would be constructed using the constructor that accepts an int and a string, assuming there is such a constructor for all T's elements. If there isn't such constructor for all T's elements, then it shouldn't compile, of course. Of course using the exact syntax above is not possible, because it's reserved for something else, but any other syntax would be just as good (perhaps using in_place_factory). Yuval