Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-29 19:22:16


AMDG

Orhun Birsoy wrote:
> I have a function that is templated with a tuple. I would like to
> convert the input tuple to a different tuple with the same size, and
> with related but different types. I can have any number of items in
> the tuple, not just two as given in the example.
> ie
> tuple<shared_ptr<Foo>, shared_ptr<Bar>> r = GetProperties<tuple<Foo,
> Bar>>();
>
>
> The template magic that will achive this currently eludes me. How can
> I do this?

Try Fusion.

In Christ,
Steven Watanabe


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