[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-14 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-14 08:37 --- After reflection I changed the subject. While template declaration and partial specialization is possible inside a class, the full specialzation is not. -- What|Removed

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-14 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-14 17:06 --- I don't think full specializations are not allowed in side classes but I don't have my copy of the standard in front of me. Also note ICC also rejects this code: t.cc(28): error: class "container::iterato

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-15 Thread lerdsuwa at gcc dot gnu dot org
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-15 11:21 --- >From 14.7.2 [temp.expl.spec] paragraph 2: An explicit specialization shall be declared in the namespace of which the template is a member, or, for member templates, in the namespace of which the enclos

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-15 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-15 14:03 --- (In reply to comment #3) > From 14.7.2 [temp.expl.spec] paragraph 2: > An explicit specialization shall be declared in the namespace of which the > template is a member, > or, for member templ

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-15 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-15 14:43 --- And for everyone who have the same problem, here is a workaround. Declare a template class with a dummy argument (int in this case), partial specialize this class and derive from the partial specialized

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-15 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-05-15 14:51 --- > ... Why? > Because the standard says so, there is no other reason (in other words, there > is no reason at all). I'm sorry, why this attitud

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-15 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-15 17:46 --- (In reply to comment #6) > > ... Why? > > Because the standard says so, there is no other reason (in other words, there > > is n

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-15 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-15 17:54 --- Let me say this, the standard is needed otherwise, there is no language defined as C, just like there phython is not really defined. Oh, and people who write GCC are both on the C and C++ ISO committees.

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-15 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-15 17:58 --- This is the last try. First I wonder who has invented the strange syntax for defining template member classes outside. C++ is still an imperative programming language, not a functional. A straightforwar

[Bug c++/21543] Full specialization of templates not supported in classes

2005-05-15 Thread sven at clio dot in-berlin dot de
--- Additional Comments From sven at clio dot in-berlin dot de 2005-05-15 18:20 --- (In reply to comment #8) > Let me say this, the standard is needed otherwise, there is no language > defined as C, just like there phython is not really defined. Did You know that You can not write