--- Comment #3 from pinskia at gcc dot gnu dot org 2008-12-29 04:06 ---
You just want:
struct A::B
{
B()
{
cout << __PRETTY_FUNCTION__ << endl;
}
};
Since you already specialized A, you don't need to specialize
A::B.
--
pinskia at gcc dot gn
--- Comment #2 from philippe at fornux dot com 2008-03-28 05:20 ---
** Then if I add the following:
template <>
struct A::B
{
B()
{
cout << __PRETTY_FUNCTION__ << endl;
}
};
** I get:
nes
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-03-28 00:25 ---
This error message is correct as you specialized A but you also need to
specialize the nested class as the non specialized version of the nested
function will not be used.
--
pinskia at gcc dot gnu dot org change