5 Aug
2005
5 Aug
'05
5:46 p.m.
Howard Hinnant
Fwiw, the tuple interface has been added to std::tr1::array:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf
Section 6.2.2.5.
FWIW, that's ultimately the wrong generic interface for access to fixed-length structures. It's okay for array, but for most tuple implementations it generates O(N^2) template instantiations for a traversal of N elements. I hope the Boost Fusion library and related work will give us something better to propose soon. -- Dave Abrahams Boost Consulting www.boost-consulting.com