home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.gtech.com!noc.near.net!hri.com!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!hobbes.inesc.pt!cbt
- From: cbt@hobbes.inesc.pt (Conceicao Batista Tavares)
- Newsgroups: gnu.g++.bug
- Subject: static member of a template
- Message-ID: <CBT.92Dec22123452@hobbes.inesc.pt>
- Date: 22 Dec 92 12:34:52 GMT
- Sender: gnulists@ai.mit.edu
- Distribution: gnu
- Organization: INESC, Lisboa Portugal
- Lines: 32
- Approved: bug-g++@prep.ai.mit.edu
-
- When I try to compile the following program I get an error,
- and I don't know if it is g++ bug. I think that sintax it's OK.
-
- Does anyone knows what is happening?
-
- Exemple-----------------------------------------
-
- template<class T> class A {
- static int a;
- }
-
- template<class T> int A<T>::a;
-
- main() {
- }
-
- -------------------------------------------------
-
- And the error is:--------------------------------
-
- sorry, not implemented: non-function templates not yet supported
-
- -------------------------------------------------
-
- Thanks
-
- SAO
- --
- <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <>
- <> Programs don't | Sao Tavares <>
- <> run, just walk | E-mail: cbt@yosemite.inesc.pt <>
- <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <>
-