From -4937639126336249856
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f635e,568789171a7b7ed3
X-Google-Attributes: gidf635e,public
X-Google-Thread: f78e5,568789171a7b7ed3
X-Google-Attributes: gidf78e5,public
From: mwron@metrowerks.com (MW Ron)
Subject: Re: template declaration
Date: 1999/09/30
Message-ID: <mwron-3009991511120001@c243286-a.bcreek1.mi.home.com>#1/1
X-Deja-AN: 531281194
X-NNTP-Posting-Host: news.newsdawg.com
Approved: stephen.clamage@sun.com (comp.std.c++)
References: <1dyxmnt.8h5kkilzu074N@[192.168.0.2]>
X-UID: 0000000001
X-Status: $$$T
Organization: Metrowerks
Newsgroups: comp.sys.mac.programmer.codewarrior,comp.std.c++
Originator: clamage@taumet


In article <1dyxmnt.8h5kkilzu074N@[192.168.0.2]>,
pmaguyot@mon.adresse.est.ailleurs.invalid (Pierre Guyot) wrote:

>I need two independent template classes that have to know the existence
>of the other :

Forward declare one.

template <class> class ClassTwo;

template <class AType>
class ClassOne {
 
ClassTwo< AType>* func1();
 
};

template <class AType>
class ClassTwo {
 
ClassOne< AType>* func2();
 
};

Ron

-- 
CodeWarrior Pro 5 Review
C++ Report Oct issue, Page 48

METROWERKS                   Ron Liechty
"Software at Work"    MWRon@metrowerks.com


[ 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              ]




