G
Guido Forthofer
Hello,
I convert my VC6 C++ project after VC7 (7.1) and have now an compiler
error
d:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\vector(810):
error C2558: class 'std::auto_ptr<_Ty>' : no copy constructor available
or copy constructor is declared 'explicit'
with
[
_Ty=KServer
]
Here as example my code
class KSrv
{
...
}:
typedef std::auto_ptr< KSrv > TySrvPtr;
typedef std::vector< TySrvPtr > TySrvList;
TySrvList oList;
....
oList.push_back(TySrvPtr(new KSrv)); <-- the compiler throw the error
message
why???
Guido
I convert my VC6 C++ project after VC7 (7.1) and have now an compiler
error
d:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\vector(810):
error C2558: class 'std::auto_ptr<_Ty>' : no copy constructor available
or copy constructor is declared 'explicit'
with
[
_Ty=KServer
]
Here as example my code
class KSrv
{
...
}:
typedef std::auto_ptr< KSrv > TySrvPtr;
typedef std::vector< TySrvPtr > TySrvList;
TySrvList oList;
....
oList.push_back(TySrvPtr(new KSrv)); <-- the compiler throw the error
message
why???
Guido