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" Newsgroups: comp.lang.c++ Subject: Re: template Date: Mon, 6 Jun 2011 12:17:31 +0200 Lines: 23 Message-ID: <953nppFhccU1@mid.individual.net> 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 bx wrote: > template<> > typename basic_trait >::Basic > DataRef >::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 >::Basic", this is just an ordinary type, and typename is not needed. In the upcoming C++11 these rules are somewhat relaxed. Bo Persson