Article View: comp.std.c++
Article #1853Re: nested class member templates
From: Steve Clamage
Date: Mon, 28 Aug 1995 03:05
Date: Mon, 28 Aug 1995 03:05
25 lines
1280 bytes
1280 bytes
Distribution: In article 95Aug24221434@Austern, Tony Cook <tony@online.tmx.com.au> writes: > >Is there a specific reason that a nested class cannot have a member >template? > >My main query is why the specific restriction exists. I didn't find that restriction in the draft, but I may have missed it. There is a restriction that a *local* class cannot have a member template. (A local class is one defined inside a function.) You cannot declare a template inside a function, so it seems reasonable to disallow template members of local classes for the same reason. --- Steve Clamage, stephen.clamage@eng.sun.com --- [ 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:
<MATT.95Aug27190550@Austern>Path:
arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!MattReferences:
<MATT.95Aug24221434@Austern>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!Matt From: clamage@Eng.Sun.COM (Steve Clamage) Newsgroups: comp.std.c++ Subject: Re: nested class member templates Date: 28 Aug 1995 03:05:50 GMT Organization: Sun Microsystems Inc. Approved: Matt@Austern Message-ID: <MATT.95Aug27190550@Austern> References: <MATT.95Aug24221434@Austern> Reply-To: clamage@Eng.Sun.COM NNTP-Posting-Host: austern.hip.berkeley.edu