Re: specialization of member functions of class templates
From: SainTiss (stiss_at_gmx.net)
Date: 12/25/03
- Next message: Claus Nietzsche: "Re: probs with a simple program"
- Previous message: Victor Bazarov: "Re: probs with a simple program"
- In reply to: Victor Bazarov: "Re: specialization of member functions of class templates"
- Next in thread: Victor Bazarov: "Re: specialization of member functions of class templates"
- Reply: Victor Bazarov: "Re: specialization of member functions of class templates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Claus Nietzsche: "Re: probs with a simple program"
- Previous message: Victor Bazarov: "Re: probs with a simple program"
- In reply to: Victor Bazarov: "Re: specialization of member functions of class templates"
- Next in thread: Victor Bazarov: "Re: specialization of member functions of class templates"
- Reply: Victor Bazarov: "Re: specialization of member functions of class templates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|