Login  Register

Re: VC9

Posted by Peter Caspers-4 on May 30, 2013; 10:33am
URL: http://quantlib.414.s1.nabble.com/VC9-tp14294p14295.html

Hi Mark,

can you please replace the file test-suite/markovfunctional.cpp with the attached one and see if it works then ?

It seems map:at is not supported by vc9. Therefore I changed line 1015 as follows

-        Real blackVega = boost::any_cast<Real>(ch1[i].additionalResults().at("vega"));
+        Real blackVega = ch1[i].result<Real>("vega");

and line 1075 respectively

-        Real blackVega = boost::any_cast<Real>(ch2[i].additionalResults().at("vega"));
+        Real blackVega = ch2[i].result<Real>("vega");

regards
 Peter

Am 30.05.2013 08:27, schrieb Mark joshi:
OK I checked out and did a full build of QuantLib for the first time in a long time today.

The testsuite built and passed with VC11

With VC9 I get

1>.\markovfunctional.cpp(1015) : error C2039: 'at' : is not a member of 'std::map<_Kty,_Ty>'
1>        with
1>        [
1>            _Kty=std::string,
1>            _Ty=boost::any
1>        ]

Are we still targeting VC9?

best

Mark


--

Prof Mark Joshi
Centre for Actuarial Studies
University of Melbourne
My website is www.markjoshi.com


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1


_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev




------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev

markovfunctional.zip (14K) Download Attachment