Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #6265

Re: template

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.190.251.MISMATCH!news-out.readnews.com!transit4.readnews.com!panix!not-for-mail
From ruben safir <ruben@mrbrklyn.com>
Newsgroups comp.lang.c++
Subject Re: template
Date Mon, 6 Jun 2011 08:22:14 +0000 (UTC)
Organization PANIX Public Access Internet and UNIX, NYC
Lines 15
Message-ID <isi2nm$flj$2@reader1.panix.com> (permalink)
References <4a753538-47af-4366-a15e-6fb41f70173f@d28g2000yqf.googlegroups.com>
NNTP-Posting-Host www2.mrbrklyn.com
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace reader1.panix.com 1307348534 16051 96.57.23.82 (6 Jun 2011 08:22:14 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Mon, 6 Jun 2011 08:22:14 +0000 (UTC)
User-Agent Pan/0.133 (House of Butterflies)
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:6265

Show key headers only | View raw


On Sun, 05 Jun 2011 23:47:34 -0700, 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

This is a VERY basic template question.  Where did you lift this from.  it looks like a specialization
of an existing genralized template...and yes typename (or class) has to be within the angle brackets.

Ruben

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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