G
Guest
I had a template library, the library was successfully compiled
on versrion 6.0 but when I tried to upgrade it in .NET version,
compilation had failed with the message like:
error C2248 'MyPLib::Basic2DArray<T>::m' : cannot access protected member
declared in 'PLib::Basic2DArray<T>'
The class implemented by
template <class T>
class Basic2DArray
{
public:
....
friend void InitializeArray(Basic2DArray<T>& a);
....
protected:
int m;
}
Why the code was not compiled in .NET version? In Visual C++ 6.0,
the library had no problem with compilation and link.
Please help me...
on versrion 6.0 but when I tried to upgrade it in .NET version,
compilation had failed with the message like:
error C2248 'MyPLib::Basic2DArray<T>::m' : cannot access protected member
declared in 'PLib::Basic2DArray<T>'
The class implemented by
template <class T>
class Basic2DArray
{
public:
....
friend void InitializeArray(Basic2DArray<T>& a);
....
protected:
int m;
}
Why the code was not compiled in .NET version? In Visual C++ 6.0,
the library had no problem with compilation and link.
Please help me...