strange error in easy metod

hi all , im passing the following vector in a method:
the call meted is :

okElem elem=getChannelForUE(cqiVETT, mappa);

that return me a struct okEleme, the vector is cqiVETT and is defined in this way:
 
  typedef std::vector<struct CqiFeedback> CqiFeedbacks;

in the UeRecord.h class...

the definition of getChannelForUE is this:

1
2
struct okElem getChannelForUE(UeRecord::CqiFeedbacks vett, vector<alloc_map_elemen*> mappa){
}


the problem is that when i print the lenght of vert BEFORE pass it in the method is 100, but when i print the length of vert INSIDE the getChannelForUE method it return ZERO. i tried also to pass a pointer to the vector but is the same...
how is possible?
thank you in advance
Last edited on
I can guess only that inside the function you declared a local vector with the same type and name as the parameter.
Topic archived. No new replies allowed.