G
Guest
i have made a template class like this,
template< typename T>
class CStatus
{
public:
~CStatus(){}
void OnRender(CDisplay * pDisplay)
{
if ( C24Operator:perator_empty != _status)
{
_t->Render(pDisplay);
}
}
C24Operator::status_operator _status;
T _t;
public:
CStatus(C24Operator::status_operator st, T t)
{
_t =t;
_status = st;
}
private:
CStatus( const CStatus&);
CStatus operator=(const CStatus&);
};
Now i want to put its entities into a container ,for example a list
list<CStatus<>> alist is error, how should i do? thanks ahead
template< typename T>
class CStatus
{
public:
~CStatus(){}
void OnRender(CDisplay * pDisplay)
{
if ( C24Operator:perator_empty != _status)
{
_t->Render(pDisplay);
}
}
C24Operator::status_operator _status;
T _t;
public:
CStatus(C24Operator::status_operator st, T t)
{
_t =t;
_status = st;
}
private:
CStatus( const CStatus&);
CStatus operator=(const CStatus&);
};
Now i want to put its entities into a container ,for example a list
list<CStatus<>> alist is error, how should i do? thanks ahead