D
Dinesh
template <class _CharT> class Error;
class Y
{
public:
Y(const Error<char>& a) {}
};
class X : public Y
{
public:
X(const Error<char>& a) : Y(a) {}
};
int main()
{
jk=10;
}
Why this test case if compiled under MS Visual Studio .Net
2003 C++ Compiler gives unwanted messages? error C2065 is
expected but what about the others?
.../s\stdexc2.c(17) : error C2065: 'jk' : undeclared identifier
../s\stdexc2.c(12) : see reference to class
template instantiation 'Error<_CharT>' being compiled
with
[
_CharT=char
]
../s\stdexc2.c(12) : see reference to class
template instantiation 'Error<_CharT>' being compiled
with
[
_CharT=char
]
../s\stdexc2.c(12) : see reference to class
template instantiation 'Error<_CharT>' being compiled
with
[
_CharT=char
]
../s\stdexc2.c(12) : see reference to class
template instantiation 'Error<_CharT>' being compiled
with
[
_CharT=char
]
../s\stdexc2.c(12) : see reference to class
template instantiation 'Error<_CharT>' being compiled
with
[
_CharT=char
]
../s\stdexc2.c(12) : see reference to class
template instantiation 'Error<_CharT>' being compiled
with
[
_CharT=char
]
class Y
{
public:
Y(const Error<char>& a) {}
};
class X : public Y
{
public:
X(const Error<char>& a) : Y(a) {}
};
int main()
{
jk=10;
}
Why this test case if compiled under MS Visual Studio .Net
2003 C++ Compiler gives unwanted messages? error C2065 is
expected but what about the others?
.../s\stdexc2.c(17) : error C2065: 'jk' : undeclared identifier
../s\stdexc2.c(12) : see reference to class
template instantiation 'Error<_CharT>' being compiled
with
[
_CharT=char
]
../s\stdexc2.c(12) : see reference to class
template instantiation 'Error<_CharT>' being compiled
with
[
_CharT=char
]
../s\stdexc2.c(12) : see reference to class
template instantiation 'Error<_CharT>' being compiled
with
[
_CharT=char
]
../s\stdexc2.c(12) : see reference to class
template instantiation 'Error<_CharT>' being compiled
with
[
_CharT=char
]
../s\stdexc2.c(12) : see reference to class
template instantiation 'Error<_CharT>' being compiled
with
[
_CharT=char
]
../s\stdexc2.c(12) : see reference to class
template instantiation 'Error<_CharT>' being compiled
with
[
_CharT=char
]