[ quantlib-Patches-502906 ] std::abs in Swap example

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

[ quantlib-Patches-502906 ] std::abs in Swap example

SourceForge.net
Patches item #502906, was opened at 2002-01-12 20:00
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=312740&aid=502906&group_id=12740

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: edward (tailbert)
Assigned to: Nobody/Anonymous (nobody)
Summary: std::abs in Swap example

Initial Comment:
use `std::abs' explicitly. a number of systems have
abs() predefined (in my case, as abs(int)), in the swap
valuation example under Examples/Swap

patch attached as unified diff from the root directory
on a *unix* system (no carriage returns).

ps. is there a patch generation document?

if not, how about:

cd /path/to/QuantLib
diff -u dir/to/original-file dir/to/corrected-file > patch

great work, people!

edward


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

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=312740&aid=502906&group_id=12740