|
Boost Users : |
From: Yuval Ronen (ronen_yuval_at_[hidden])
Date: 2007-01-15 14:43:48
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net