G
Guest
I am converting my VC++ MFC to Manage C++ and I am having trouble using the
vector class.
Here is my __gc class
....other headers for System classes ....
#include <algorithm>
#include <vector>
using namespace std;
public __gc class DocumentData{
.....other variables
vector<int> m_NextReferenceA;
}
this class is used through out my program, but I get these errors:
(184): error C3633: cannot define 'm_NextReferenceA' as a member of managed
'DocumentData'
(184): error C3633: cannot define 'm_NextReferenceA' as a member of managed
'DocumentData'
because of the presence of copy constructor
'std::vector<_Ty>::__ctor' on class 'std::vector<_Ty>'
with
[
_Ty=int
]
and
[
_Ty=int
]
and
[
_Ty=int
]
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\vector(327) : see declaration of 'std::vector<_Ty>::__ctor'
with
[
_Ty=int
]
and
[
_Ty=int
]
I need to use this vector class for vital parts in my program. How do I set
this up properly to use it?....
Thanks for helping me!...
vector class.
Here is my __gc class
....other headers for System classes ....
#include <algorithm>
#include <vector>
using namespace std;
public __gc class DocumentData{
.....other variables
vector<int> m_NextReferenceA;
}
this class is used through out my program, but I get these errors:
(184): error C3633: cannot define 'm_NextReferenceA' as a member of managed
'DocumentData'
(184): error C3633: cannot define 'm_NextReferenceA' as a member of managed
'DocumentData'
because of the presence of copy constructor
'std::vector<_Ty>::__ctor' on class 'std::vector<_Ty>'
with
[
_Ty=int
]
and
[
_Ty=int
]
and
[
_Ty=int
]
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\vector(327) : see declaration of 'std::vector<_Ty>::__ctor'
with
[
_Ty=int
]
and
[
_Ty=int
]
I need to use this vector class for vital parts in my program. How do I set
this up properly to use it?....
Thanks for helping me!...