Thread View: comp.std.c++
3 messages
3 total messages
Started by Tony Cook
Fri, 25 Aug 1995 06:14
nested class member templates
Author: Tony Cook
Date: Fri, 25 Aug 1995 06:14
Date: Fri, 25 Aug 1995 06:14
14 lines
822 bytes
822 bytes
Is there a specific reason that a nested class cannot have a member
template?
My main query is why the specific restriction exists.
--
Tony Cook - tony@online.tmx.com.au
100237.3425@compuserve.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. ]
Re: nested class member templates
Author: 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. ]
Re: nested class member templates
Author: Tony Cook
Date: Wed, 30 Aug 1995 08:10
Date: Wed, 30 Aug 1995 08:10
15 lines
1150 bytes
1150 bytes
Steve Clamage (clamage@Eng.Sun.COM) wrote:
: 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?
: I didn't find that restriction in the draft, but I may have missed it.
Sorry, I misread it.
--
Tony Cook - tony@online.tmx.com.au
100237.3425@compuserve.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. ]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads