From 8841084591551970935
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,a168a4c8ad0acdbb
X-Google-Attributes: gidf78e5,public
From: "Ben Jones" <ben_j@usa.net>
Subject: Re: template friends
Date: 1999/03/18
Message-ID: <921574005.23965.0.nnrp-13.9e981003@news.demon.co.uk>#1/1
X-Deja-AN: 455996103
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <921495788.22569.0.nnrp-01.9e981003@news.demon.co.uk> <slrn7eqh4q.rie.sbnaran@localhost.localdomain>
X-Original-Date: Tue, 16 Mar 1999 09:18:29 -0000
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: izvestia.its.unimelb.edu.au 921733369 14582 128.250.29.17 (18 Mar 1999 05:02:49 GMT)
Organization: -
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANvCI7OEDnX0m9pzZAQHyIwGAmgQsKz/xqhsFk3MyyrzW82Qo840WD2RF 4WAQYjr3STDnWpUg/SgkfG6C8sIpksHW =pwX+
NNTP-Posting-Date: 18 Mar 1999 05:02:49 GMT
Newsgroups: comp.std.c++

Thanks for your suggestion Siemel...

>   template <class T> friend TemplateClass<T>;

I tried this, but with visual C++ I get:
error C2059: syntax error : '<end Parse>'
error C2143: syntax error : missing ';' before '}'
error C2238: unexpected token(s) preceding ';'

Does it work for you? -- in which case, what compiler are you using? Is it
part of the standard?

Thanks,
ben_j@usa.net
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



