K
Karine Pinault
I am having trouble trying to compile existing code with the /clr
flag.
The following error occurs and I can't figure it out how to fix this
problem.
I have the following declaration:
typedef enum t_enEtatListeAuto
{
enEtatAucun,
enEtatCoche,
enEtatCroix
};
This type is then used in a CList:
CList<t_enEtatListeAuto,t_enEtatListeAuto> m_oListeDesEtats;
The following compile error occurs:
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxtempl.h(864) : error C2300: 'System::Enum'
: class does not have a destructor called '~TYPE'
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xmemory(136) : while compiling class-template member
function 'void CList<TYPE,ARG_TYPE>::RemoveAll(void)'
with
[
TYPE=t_enEtatListeAuto,
ARG_TYPE=t_enEtatListeAuto
]
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xmemory(136) : while compiling class-template member
function 'CList<TYPE,ARG_TYPE>::~CList(void)'
with
[
TYPE=t_enEtatListeAuto,
ARG_TYPE=t_enEtatListeAuto
]
STY_Ctl_Liste.h(110) : see reference to class template
instantiation 'CList<TYPE,ARG_TYPE>' being compiled
with
[
TYPE=t_enEtatListeAuto,
ARG_TYPE=t_enEtatListeAuto
]
Any help would be appreciated.
Karine
flag.
The following error occurs and I can't figure it out how to fix this
problem.
I have the following declaration:
typedef enum t_enEtatListeAuto
{
enEtatAucun,
enEtatCoche,
enEtatCroix
};
This type is then used in a CList:
CList<t_enEtatListeAuto,t_enEtatListeAuto> m_oListeDesEtats;
The following compile error occurs:
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxtempl.h(864) : error C2300: 'System::Enum'
: class does not have a destructor called '~TYPE'
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xmemory(136) : while compiling class-template member
function 'void CList<TYPE,ARG_TYPE>::RemoveAll(void)'
with
[
TYPE=t_enEtatListeAuto,
ARG_TYPE=t_enEtatListeAuto
]
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xmemory(136) : while compiling class-template member
function 'CList<TYPE,ARG_TYPE>::~CList(void)'
with
[
TYPE=t_enEtatListeAuto,
ARG_TYPE=t_enEtatListeAuto
]
STY_Ctl_Liste.h(110) : see reference to class template
instantiation 'CList<TYPE,ARG_TYPE>' being compiled
with
[
TYPE=t_enEtatListeAuto,
ARG_TYPE=t_enEtatListeAuto
]
Any help would be appreciated.
Karine