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