
29 Jul
2008
29 Jul
'08
10:09 p.m.
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