Posted by
Peter Caspers-4 on
Dec 29, 2012; 12:42pm
URL: http://quantlib.414.s1.nabble.com/storing-the-data-once-it-has-been-parsed-tp13821p13843.html
Hi Pavan,
try DateParser::parseISO( ) instead. This is a static function
defined in the class DateParser.
Peter
Am 29.12.2012 00:25, schrieb Pavan Shah:
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
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 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_122912_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users