Another iostreams question

Is it possible to do something like
template <typename T>
T* Access(int n) {
return chain.component

"Lisa Glendenning"
What version of GCC are you using? Have you tried
chain.template component
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

I am building a templated container class C. Normally it acts just like an stl::map. However, if the mapped_type of a container C
participants (3)
-
Alan M. Carroll
-
Jonathan Turkanis
-
Lisa Glendenning