Skip to content

Commit

Permalink
Avoid a couple of warnings with no automated fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Feb 12, 2021
1 parent a01c89a commit 4196cf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ql/cashflows/cashflows.hpp
Expand Up @@ -40,9 +40,6 @@ namespace QuantLib {
/*! \todo add tests */
class CashFlows {
private:
CashFlows() = delete;
CashFlows(const CashFlows&) = delete;

class IrrFinder {
public:
IrrFinder(const Leg& leg,
Expand All @@ -68,6 +65,9 @@ namespace QuantLib {
Date settlementDate_, npvDate_;
};
public:
CashFlows() = delete;
CashFlows(const CashFlows&) = delete;

//! \name Date functions
//@{
static Date startDate(const Leg& leg);
Expand Down
5 changes: 3 additions & 2 deletions ql/cashflows/conundrumpricer.hpp
Expand Up @@ -74,6 +74,9 @@ namespace QuantLib {
ParallelShifts,
NonParallelShifts
};

GFunctionFactory() = delete;

static ext::shared_ptr<GFunction>
newGFunctionStandard(Size q,
Real delta,
Expand All @@ -84,8 +87,6 @@ namespace QuantLib {
newGFunctionWithShifts(const CmsCoupon& coupon,
const Handle<Quote>& meanReversion);
private:
GFunctionFactory() = delete;

class GFunctionStandard : public GFunction {
public:
GFunctionStandard(Size q,
Expand Down

0 comments on commit 4196cf5

Please sign in to comment.