Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #6276
| From | "Bo Persson" <bop@gmb.dk> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: template |
| Date | 2011-06-06 12:17 +0200 |
| Message-ID | <953nppFhccU1@mid.individual.net> (permalink) |
| References | <4a753538-47af-4366-a15e-6fb41f70173f@d28g2000yqf.googlegroups.com> |
bx wrote: > template<> > typename basic_trait<std::vector<float> >::Basic > DataRef<std::vector<float> >::operator[](std::size_t index) const; > > Hi > with the above i get error: > using ‘typename’ outside of template > Any help? Also I don't understand typename. > Thanks typename is currently only allowed when actually needed. As there are no template parameters in "basic_trait<std::vector<float> >::Basic", this is just an ordinary type, and typename is not needed. In the upcoming C++11 these rules are somewhat relaxed. Bo Persson
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
template bx <bxcvs@yahoo.com> - 2011-06-05 23:47 -0700
Re: template ruben safir <ruben@mrbrklyn.com> - 2011-06-06 08:22 +0000
Re: template bx <bxcvs@yahoo.com> - 2011-06-06 03:02 -0700
Re: template ruben safir <ruben@mrbrklyn.com> - 2011-06-06 06:05 -0400
Re: template "Bo Persson" <bop@gmb.dk> - 2011-06-06 12:17 +0200
Re: template Michael <Michael@notspam.com> - 2011-06-06 18:21 +0200
csiph-web