--- In [email protected], "aviasd" <[EMAIL PROTECTED]> wrote: > > --- In [email protected], "aviasd" <aviasd@> wrote: > > Forgot to mention that i do a vec.sort(v) before running binsearch > > > > > Hi , I have a vector containing various string numbers , i.e > > v[0] = "345" > > v[1] = "234" > > v[2] = "456" > > etc > > > > when i do binsearch for the first value , the index return is - 1 , > all > > the others are ok.. > > I think it's a bug since it has to return 0...
Above should return 1 after sorting if you mean 345. And does in my tests plus other situations I tried. Pls post the exact code of a failing example. (No "etc"). > > > > Please correct me if i'm wrong... > > > > thanks > > > > > > avi > > >
