|
Boost Users : |
From: Orhun Birsoy (orhunbirsoy_at_[hidden])
Date: 2008-07-29 18:09:57
Hi,
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?
Thanks.
-- Orhun Birsoy
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