Added 'CLI-safe' versions of singleton.hpp and currency classes to new folder CLI.  These files are intended to replace the existing QuantLib where CLI wrappers are being used and avoids issues associated with static variables and CLR shutdown.  Please see the ReadMe file in the CLI folder for further details.

Signed-off-by: Simon Shakeshaft <simon.shakeshaft@estrategy-solutions.com>
Added additional test case for Thirty360 daycounter (BondBasis and EurobondBasis).

Signed-off-by: Simon Shakeshaft <simon.shakeshaft@estrategy-solutions.com>
Corrected flag usage in test-suite/bin/runtest.bat.

Signed-off-by: Simon Shakeshaft <simon.shakeshaft@estrategy-solutions.com>
check if forward + displacement is positive instead of the forward alone
allow for negative strikes (down to -displacement)
Separated implementation into cpp file, but this requires explicit template instantiations.

commented out #include <ql/types.hpp> not required?

Signed-off-by: Simon Shakeshaft <simon.shakeshaft@estrategy-solutions.com>
Moved implementations to .cpp files - works around an issue when using CLI wrappers.

see: http://connect.microsoft.com/VisualStudio/feedback/details/336844/static-variable-in-native-method-causes-exception-c0020001-during-process-exit
Refactor #include <ql/settings.hpp> to .cpp not reqd in .hpp.

Signed-off-by: Simon Shakeshaft <simon.shakeshaft@estrategy-solutions.com>
ensure that strike 0 is present for bounded smile sections
Refactor #include <ql/patterns/visitor.hpp>

Replace #include <ostream> with forward declared <iosfwd>

Signed-off-by: Simon Shakeshaft <simon.shakeshaft@estrategy-solutions.com>
Only require singleton.hpp to resolve an issue with the destruction of static objects on exit, when using CLI wrappers.

Signed-off-by: Simon Shakeshaft <simon.shakeshaft@estrategy-solutions.com>
fix illegal index access (which could happen for deleteArbitragePoints = true)
It seems enough to ensure that f is a valid real, so set the maximum value to QL_MAX_REAL.
If a numerical problem during interpolation occurs (zero near boundary not found or f is infinite or both)
delete the right point of the interpolation interval and try the next one. If no point is left, continue
with the extrapolation.
Merge branch 'fix20131017' into fix20131021
Add new test-suite artifacts to .gitignore.

Newer versions of either boost or autotools started redirecting
test output to log files.
More ignored artifacts.
Merge pull request #43.

Allow negative forwards in Black formula as long as forward +
displacement is not negative.
Merge pull request #47.
Reorder header.
Restore original singleton implementation.

First step in using a define to switch between the working
implementations for the compiler switch being used.