Minor bug in date output

Posted by Robert Lopez on
URL: http://quantlib.414.s1.nabble.com/Minor-bug-in-date-output-tp9747.html

I recently installed QuantLib-0.8.1 and think I've run into a minor
bug in the ostream operator << for short dates. The output adds an
extra "/" between the day and year fields. From date.cpp, lines
407-409:

>                out << std::setw(2) << std::setfill('0') << mm << "/";
>                out << std::setw(2) << std::setfill('0') << dd << "/";
>                out << "/" << yyyy;

I think that this code should read

>                out << std::setw(2) << std::setfill('0') << mm << "/";
>                out << std::setw(2) << std::setfill('0') << dd << "/";
>                out << yyyy;

Hope this is helpful.

--

 - Rob

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev