STL in a class


I am trying to compile in a library the following class:

#include “TObject.h”

using namespace std;

typedef list<ifstream*> FILEL;

class A : public TObject{

FILEL* m_pFileList;

virtual ~A();



and I get the error:

[quote]g++ -c -Wall -fPIC -g -pthread -m32 -I/usr/local/pub/debian4.0/i686/gcc411-21/rootmgr/521-01-alice/include -I…/RootErrorGI -I/home/diddutz/workspace/includes -I/usr/local/include/gdcm-2.0 test.cpp -o test.o
rootcint -f ADictDict.cpp -c -I…/RootErrorGI -I/home/diddutz/workspace/includes -I/usr/local/include/gdcm-2.0 test.h LinkDef.h
g++ -c -Wall -fPIC -g -pthread -m32 -I/usr/local/pub/debian4.0/i686/gcc411-21/rootmgr/521-01-alice/include -I…/RootErrorGI -I/home/diddutz/workspace/includes -I/usr/local/include/gdcm-2.0 ADictDict.cpp -o ADictDict.o
ADictDict.cpp: In member function ‘virtual void A::Streamer(TBuffer&)’:
ADictDict.cpp:116: Error: error: type ‘class std::list<std::ifstream*, std::allocatorstd::ifstream* >’ argument given to ‘delete’, expected pointer
ADictDict.cpp:117: Error: error: no match for ‘operator=’ in ‘((A)this)->A::m_pFileList = (((const std::allocatorstd::ifstream*&)((const std::allocatorstd::ifstream*)(& std::allocatorstd::ifstream*()))), (((FILEL)operator new(8u)), (->std::list<_Tp, _Alloc>::list with _Tp = std::ifstream*, _Alloc = std::allocatorstd::ifstream*, )))’
/usr/lib/gcc/i486-linux-gnu/4.1.2/…/…/…/…/include/c++/4.1.2/bits/list.tcc:120: Error: note: candidates are: std::list<_Tp, _Alloc>& std::list<_Tp, _Alloc>::operator=(const std::list<_Tp, _Alloc>&) [with _Tp = std::ifstream*, _Alloc = std::allocatorstd::ifstream*]
ADictDict.cpp:118: Error: error: no match for ‘operator*’ in '((A*)this)->A::m_pFileList’
ADictDict.cpp:138: Error: error: no match for ‘operator*’ in '
make: *** [ADictDict.o] Error 1

My question is how to compile such a code?
Am I missing something?

Sorry wrong Forum!