11 Aug
2004
11 Aug
'04
1:52 p.m.
Timothy Perrigo
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