M
Maxim
Hi all,
Why is the following code doesn't work?
public ref struct MyType
{
..................
};
MyType GetMyType()
{
MyType result;
......................
return result;
}
The compiler says
Error 3 error C2440: 'return' : cannot convert from 'MyLib::MyType' to
'MyLib::MyType'
Thanks in advance
Why is the following code doesn't work?
public ref struct MyType
{
..................
};
MyType GetMyType()
{
MyType result;
......................
return result;
}
The compiler says
Error 3 error C2440: 'return' : cannot convert from 'MyLib::MyType' to
'MyLib::MyType'
Thanks in advance