
17 Aug
2005
17 Aug
'05
11:16 p.m.
Is it possible to do something like template <typename T> T* Access(int n) { return chain.component<n, T>(); } because my compiler (GCC) doesn't like it. And if not, then how can I access a component without knowing at compile time its index?