From a6a75f64e7f01a314995af7e1f15bc18b7b9d379 Mon Sep 17 00:00:00 2001 From: Eugene Toder Date: Tue, 15 Oct 2024 16:08:32 -0400 Subject: [PATCH] Expose swap() on DatedOISRateHelper --- ql/termstructures/yield/oisratehelper.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ql/termstructures/yield/oisratehelper.hpp b/ql/termstructures/yield/oisratehelper.hpp index 3efd315082f..9135c479ee9 100644 --- a/ql/termstructures/yield/oisratehelper.hpp +++ b/ql/termstructures/yield/oisratehelper.hpp @@ -155,6 +155,12 @@ namespace QuantLib { Real impliedQuote() const override; void setTermStructure(YieldTermStructure*) override; //@} + //! \name inspectors + //@{ + // NOLINTNEXTLINE(cppcoreguidelines-noexcept-swap,performance-noexcept-swap) + ext::shared_ptr swap() const { return swap_; } + //@} + //@} //! \name Visitability //@{ void accept(AcyclicVisitor&) override;