[ quantlib-Bugs-3307791 ] g++ complains about mutable variables

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Bugs-3307791 ] g++ complains about mutable variables

SourceForge.net
Bugs item #3307791, was opened at 2011-05-26 12:37
Message generated for change (Tracker Item Submitted) made by benyam
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3307791&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: charas (benyam)
Assigned to: Nobody/Anonymous (nobody)
Summary: g++ complains about mutable variables

Initial Comment:
While building a package for quantlib on  archlinux i got the following warning and error  

reference 'y2_' cannot be declared 'mutable' [-fpermissive]
../ql/math/interpolations/multicubicspline.hpp:277:34: warning: reference 'v_' cannot be declared 'mutable' [-fpermissive]
../ql/math/interpolations/multicubicspline.hpp:336:33: warning: reference 'y2_' cannot be declared 'mutable' [-fpermissive]
../ql/math/interpolations/multicubicspline.hpp:337:34: warning: reference 'v_' cannot be declared 'mutable' [-fpermissive]
../ql/math/interpolations/multicubicspline.hpp:337:39: warning: reference 'v1_' cannot be declared 'mutable' [-fpermissive]
../ql/math/interpolations/multicubicspline.hpp:337:45: warning: reference 'v2_' cannot be declared 'mutable' [-fpermissive]
make[2]: *** [BermudanSwaption.o] Error 1

After compiling with -fpermissive I could get it compiled but the  warnings are still there whenever the compiler encounters
the mutable variables.

Thanks for Quantlib


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3307791&group_id=12740

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev