Article View: comp.std.c++
Article #2366Re: Template Instantiation
From: Sean A Corfield
Date: Tue, 31 Oct 1995 17:49
Date: Tue, 31 Oct 1995 17:49
34 lines
1796 bytes
1796 bytes
In article <VANDEVOD.95Oct30181524@avs.cs.rpi.edu>,
vandevod@cs.rpi.edu (David Vandevoorde) wrote:
|> MR> What about the use of a typedef name from the class. No size or
|> MR> layout is needed. Example:
|> [example elided ...]
|>
|> Good point. I thought it shouldn't (necessarily) require instantiation
|> of the typedef-enclosing class, but my favo(u)rite compiler says
|> otherwise (with your particular example)... and its designers are very
|> knowledgeable in this area.
|>
|> Anyone care to comment?
I'd go with your compiler designers on this one: to get the type of a class
member, you'd have to instantiate the class. There's a paper being written
on this topic (when types are required to be complete) which should be
voted on in March '96. Classes are required to be instantiated exactly when
the class type is required to be complete (plus a couple of other, explicit
uses such as in pointer to class casts). If the WP isn't clear enough on
this, well, we're still working on it!
--
You must be out of your brilliant mind - Furniture
http://uptown.turnpike.net/~scorf
---
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<ACBBF7F2966824A2A@corf.demon.co.uk>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattReferences:
<47345t$ouk@engnews1.eng.sun.com> <VANDEVOD.95Oct30181524@avs.cs.rpi.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: Sean A Corfield <sean@corf.demon.co.uk> Newsgroups: comp.std.c++ Subject: Re: Template Instantiation Date: 31 Oct 1995 17:49:33 GMT Organization: OCS Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <ACBBF7F2966824A2A@corf.demon.co.uk> References: <47345t$ouk@engnews1.eng.sun.com> <VANDEVOD.95Oct30181524@avs.cs.rpi.edu> NNTP-Posting-Host: physics2.berkeley.edu