Skip to content

Should QuantLib hard deprecations of daycounters be respected by RQuantLib #168

@klin333

Description

@klin333

QL 1.23 hard deprecated ActualActual with no explicit convention argument, but in RQuantLib we only soft deprecate Enum 2, by explicitly passing in the same default convention. Do we want to respect this deprecation in RQuantLib and force users to select enums 8-13. Similarly with Thirty360.

Currently it is

rquantlib/src/utils.cpp

Lines 370 to 371 in 57846cb

else if (n==2)
return QuantLib::ActualActual(QuantLib::ActualActual::ISDA); // reasonable default for back compatibility

Should we make it:

#if QL_HEX_VERSION < 0x012300f0
    else if (n==2)
        return QuantLib::ActualActual();
#endif

I'm personally supportive of leaving things in RQuantLib as it is, ie only soft deprecate. But we should collectively determine how far we want to take the strategy of 'bug for bug, feature for feature' between RQuantLib and QuantLib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions