$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2004-08-11 08:52:45
Timothy Perrigo <tperrigo_at_[hidden]> writes:
>> But does it *need* to be a runtime value? If so, something like
>> Gennadiy's solution is the only choice. If not, you can do something
>> much more efficient with MPL.
>
> It may be possible to design things so that the ids of the variables
> are known at compile time...If so, do you have any thoughts on how we
> could accomplish this using MPL? I'm excited about learning more
> about metaprogramming, so I'd welcome any suggestions or advice.
Actually if the value is known at compile-time, just use the
Boost.Tuples library (to be replaced eventually by
Boost.Fusion, which is built on MPL) directly.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com