Std::vector<>::empty() not working in my root Macro

Hi all,
I have a problem with vector::empty(): I retrieve a std::vector and I try to check if it is empty. But I cannot:

This is the piece of code:

   vector <SbtSpacePoint*> pointList = anEvent->GetSpacePointList();
   if ( !pointList.empty() ) {
     std::cout << "a total of " << pointList.size() << "\n";
   }
   i++;
 }

Does anyone have an idea of what’s wrong?

Many thanks in advance!

Regards,
Marco

Hi all,
I added this line:

#pragma link C++ class std::vector<SbtSpacePoint*>;

in _LinkDef.rdl and it worked! :smiley:

Regards,
Marco