?
=?gb2312?B?tdjH8reitq+7+g==?=
Who can tell me the result in your compiler? Is it a bug or standard
beheiver?
class A
{
template<int>
void a();
};
class B:A
{
};
template<>
void B::a<0>()
{
B *b=this; // comment this line!
}
And what would happen when you comment the marked line?
(I got some stupid result in my compiler... Who can answer that is not
a bug of the compiler? I will show you the stupid answer after some
replies. )
beheiver?
class A
{
template<int>
void a();
};
class B:A
{
};
template<>
void B::a<0>()
{
B *b=this; // comment this line!
}
And what would happen when you comment the marked line?
(I got some stupid result in my compiler... Who can answer that is not
a bug of the compiler? I will show you the stupid answer after some
replies. )