Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #6276
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.erje.net!news2.arglkargh.de!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Bo Persson" <bop@gmb.dk> |
| Newsgroups | comp.lang.c++ |
| Subject | Re: template |
| Date | Mon, 6 Jun 2011 12:17:31 +0200 |
| Lines | 23 |
| Message-ID | <953nppFhccU1@mid.individual.net> (permalink) |
| References | <4a753538-47af-4366-a15e-6fb41f70173f@d28g2000yqf.googlegroups.com> |
| X-Trace | individual.net eNfP/bNlbWUrp6+FMpWchQWHjLA476VtDK9FoXYpw3FX0dKSn4 |
| Cancel-Lock | sha1:8PnvVbJjp8QEBKJqj5jlsf6snxM= |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| X-Newsreader | Microsoft Outlook Express 6.00.2900.5931 |
| X-RFC2646 | Format=Flowed; Original |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.00.2900.6090 |
| X-Antivirus | avast! (VPS 110605-1, 2011-06-05), Outbound message |
| X-Antivirus-Status | Clean |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.c++:6276 |
Show key headers only | View raw
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