
18 Aug
2005
18 Aug
'05
7:12 p.m.
"Lisa Glendenning" <lisa@lanl.gov> wrote in message news:1124320594.18856.24.camel@jenkins.tsasa.lanl.gov...
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.
What version of GCC are you using? Have you tried chain.template component<n, T>(); ?
And if not, then how can I access a component without knowing at compile time its index?
That's a good point. The index probably should have been a runtime value. This was a feature I added after review, and I never solicited comments on it. Jonathan