Re: storing the data once it has been parsed
Posted by
Pavan Shah-2 on
Dec 28, 2012; 11:25pm
URL: http://quantlib.414.s1.nabble.com/storing-the-data-once-it-has-been-parsed-tp13821p13839.html
Hi guys,
just a quick question,
if I have a map such as map<string , vector <string> > Input_Vols
and vector <string> has 2 elements. First element is a date in string format and second one is a price.
I am trying to convert each date from string format into a QuantLib date.
I am trying to use DateParser.parseISO method from QuantLib to convert all string dates in the map into QuantLib dates.
However, the compiler complains. This is the error.
Error 2 error C2275: 'QuantLib::DateParser' : illegal use of this type as an expression
Here is my piece of code.
map<string, vector <string> >::iterator iter=Input_Vols.find("EURUSDV1M CMPN Curncy");
while(iter!=Input_Vols.end())
{
(*iter).second[0]=DateParser.parseISO((*iter).second[0]);
++iter;
}
What am I doing wrong?
thanks
pavan
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users