$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2004-12-12 10:44:13
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:
>
> http://cvs.sourceforge.net/viewcvs.py/loki-lib/loki/Reference/HierarchyGenerators.h?rev=1.5&view=auto
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