Re: specialization of member functions of class templates

From: SainTiss (stiss_at_gmx.net)
Date: 12/25/03


Date: Thu, 25 Dec 2003 16:46:48 GMT

Victor Bazarov wrote:

>
> No, not forbidden. You just have to partially specialise the class
> template as well, before you attempt to define the member. 14.5.4.3/1.

"The template argument list of a member of a class template partial
specialization shall match the template argument list of the class template
partial specialization. A class template specialization is a distinct
template."

Is this why you conclude that the partially specialised class needs to be
defined before its member is defined? That's not really clear, is it?

Additionally, that doesn't explain at all why it *is* allowed for an
explicitly specialised class...

Is the standard really this unclear about this?

Thanks,

Hans



Relevant Pages

  • Re: specialization of member functions of class templates
    ... > Victor Bazarov wrote: ... You just have to partially specialise the class ... > "The template argument list of a member of a class template partial ...
    (comp.lang.cpp)
  • Re: partial member specialization
    ... First of all thank you Victor Bazarov and especially to Malte Starostik. ... partial class template specialization ... full function template specilization ... I was looking for something like partial member specialization, ...
    (comp.lang.cpp)
  • Re: Create Group Member
    ... Your question sounds there are other templates other than the .eml template. ... Now you will have an envelope icon on your Desktop that when you click on it, you will have a New Message window with your saved opening & member list ready to go. ... I would suggest putting your email address in the To line to keep the Undisclosed Recipients from showing instead which may be filtered upon. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: pushing the limits of use-before-declaration within a class
    ... > methods or multiple inheritence. ... going to be used again other than being the type of the member c. ... I have a class template that inherits from a class that is a template ... This base class tells the templated class where an array ...
    (comp.lang.cpp)
  • Re: Problem with inheritance and tamplates
    ... your code is a template argument dependant name, ... of a base class that is dependent on a template argument. ... You need to tell the compiler it is a member name, ...
    (comp.lang.cpp)