|
From: Andreas S. <an...@sp...> - 2009-02-20 15:17:12
|
Hi Luigi, Es schrieb Luigi Ballabio > Can you send me a diff of those, so we're sure I don't miss some > instance? (Just send it to me, it will probably be too large for the > list.) I didn't keep the originals of those files so I will have to diff them against another copy, and then send them to you directly... > These two are strange. You _can_ modify a const iterator (you wouldn't > be able to iterate otherwise, which kind of defeats the whole > purpose...) You just can't modify the object it points to. What was the > error message? "bond.cpp", line 203: Error, badunaryop: Operand for operator "--" must be an lvalue. "bond.cpp", line 225: Error, badunaryop: Operand for operator "++" must be an lvalue. 2 Error(s) detected. >> Now I only keep getting an error in >> ql/models/marketmodels/models/alphafinder.cpp (maybe because of the >> empty namespace surrounding the declaration): > > Does it compile if you remove the surrounding namespace? No. I also tried giving the namespace a name and adapt the usage of Bisection further down in the file, but it didn't help. Somehow the compiler thinks the second template parameter (function pointer) doesn't match, because the compiler looks for "Bisection<::T,::Value>"... Rgds, Andreas |