
12 Dec
2004
12 Dec
'04
3:44 p.m.
Larry Evans wrote:
Could inherit_linearly be used to create something like loki's tuple? The name, inherit_linearly, and a very brief look at the code suggests it does something like loki's GenScatterHeirarchy, which was used to create the loki tuples as shown in:
Yes it can be used that way.
If so, then I was wondering if it would be worth it to reuse inherit_linearly to implement boost's tuple?
I don't think so. What would we gain by it? The successor to Boost.Tuple is described in http://www.boost.org/libs/spirit/fusion/readme.txt. Since fusion tuples are "flat" structures, there's no win in building them by repeated folding of an input sequence. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com