Skip to content

QL_REQUIRE_EXPLICIT_EVALUATION_DATE#2644

Open
kp9991-git wants to merge 2 commits into
lballabio:masterfrom
kp9991-git:EvalDateForced
Open

QL_REQUIRE_EXPLICIT_EVALUATION_DATE#2644
kp9991-git wants to merge 2 commits into
lballabio:masterfrom
kp9991-git:EvalDateForced

Conversation

@kp9991-git

Copy link
Copy Markdown
Contributor

When the evaluation date is not set, it defaults to today. In some cases it can be a problem because defaulting to a date that the user failed to set (but potentially expects) can result in subtle pricing errors that are not immediately obvious. This PR introduces a compile-level flag in QL_REQUIRE_EXPLICIT_EVALUATION_DATE in userconfig.hpp. When set, accessors to the evaluation date (if it has not been set) will fail, helping the user see that something is wrong.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 74.885%. remained the same — kp9991-git:EvalDateForced into lballabio:master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants