Login  Register

Re: Having build problems.

Posted by Luigi Ballabio-4 on Apr 30, 2002; 12:46am
URL: http://quantlib.414.s1.nabble.com/Having-build-problems-tp2024p2027.html

At 10:30 PM 4/29/02 -0400, Liam Herron wrote:
>I checked the code out 10 days ago and built it and it worked
>fine.  Just recently, I updated the code base and I am getting
>the following error:
>
>compoundforward.cpp:150: no matching function for call to `vector<Rate,
>allocator<Rate> >::at (Size &)'
>
>Any ideas?

For some reason, your compiler doesn't seem to know that std::vector has a
method "at". What version of gcc are you using?

Bye,
         Luigi

(note for Andre: if the indexes are known to be safe already---i.e., you
already know that i is between 0 and v.size() because the for loop says so,
or because you already verified the lengths somewhere else---it might be
more readable to use v[i] instead of v.at(i). What do you think?)