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


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

Re: template

From ruben safir <ruben@mrbrklyn.com>
Newsgroups comp.lang.c++
Subject Re: template
Date 2011-06-06 08:22 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <isi2nm$flj$2@reader1.panix.com> (permalink)
References <4a753538-47af-4366-a15e-6fb41f70173f@d28g2000yqf.googlegroups.com>

Show all headers | 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