Posted by
Andreas Spengler-2 on
Feb 20, 2009; 3:17pm
URL: http://quantlib.414.s1.nabble.com/Compilation-problems-with-SUN-CC-tp12581p12584.html
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
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev