Deque of TObject pointers

Hello,

It seems that the following works fine (taken from a mail in the archive):

#include <vector> using namespace std; template class vector<TObject*>; TObject* a=new TObject() vector <TObject*> Q; Q.push_back(a)

But when I try the same with deque, it crashes:

#include <deque> using namespace std; template class deque<TObject*>; TObject* a=new TObject() deque <TObject*> Q; Syntax error FILE:defalloc.h LINE:137 *** Interpreter error recovered ***

Any idea what I do wrong here?

Hi,

I can not reproduce this problem.
What platform and version are you using?

Cheers,
Philippe

[quote=“pcanal”]Hi,

I can not reproduce this problem.
What platform and version are you using?

Cheers,
Philippe[/quote]

Thanks!
I use RHEL3 and ROOT5.
However, I cannot reproduce the problem today either.
Meaning: the problem is gone, no idea how or why. Very sorry for wasting your time.