Skip to content

Commit

Permalink
Fixes after automated merges
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Feb 11, 2021
1 parent e715b98 commit 63571f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
Expand Up @@ -75,7 +75,7 @@ namespace QuantLib {
genCashFlows)
{

for (unsigned long& i : numberCashFlowsThisStep)
for (Size & i : numberCashFlowsThisStep)
i = 0UL;

if (currentIndex_ >= offset_ && (currentIndex_ - offset_) % period_ == 0) {
Expand Down
7 changes: 2 additions & 5 deletions test-suite/inflationcpicapfloor.cpp
Expand Up @@ -208,18 +208,15 @@ namespace inflation_cpi_capfloor_test {
{ Date( 2, June, 2070), 3.757542 },
{ Date( 3, June, 2080), 3.651379 }
};
const Size nominalDataLength = 33-1;

std::vector<Date> nomD;
std::vector<Rate> nomR;
for (auto& i : nominalData) {
nomD.push_back(i.date);
nomR.push_back(i.rate / 100.0);
}
ext::shared_ptr<YieldTermStructure> nominalTS
= ext::make_shared<InterpolatedZeroCurve<Linear>
>(nomD,nomR,dcNominal);

ext::shared_ptr<YieldTermStructure> nominalTS =
ext::make_shared<InterpolatedZeroCurve<Linear>>(nomD,nomR,dcNominal);

nominalUK.linkTo(nominalTS);

Expand Down
5 changes: 1 addition & 4 deletions test-suite/inflationcpiswap.cpp
Expand Up @@ -187,7 +187,6 @@ namespace inflation_cpi_swap_test {
{ Date(25, November, 2069), 3.72677 },
{ Date(27, November, 2079), 3.63082 }
};
const Size nominalDataLength = 30-1;

std::vector<Date> nomD;
std::vector<Rate> nomR;
Expand All @@ -196,9 +195,7 @@ namespace inflation_cpi_swap_test {
nomR.push_back(i.rate / 100.0);
}
ext::shared_ptr<YieldTermStructure> nominal =
ext::make_shared<InterpolatedZeroCurve<Linear>
>(nomD,nomR,dcNominal);

ext::make_shared<InterpolatedZeroCurve<Linear>>(nomD,nomR,dcNominal);

nominalTS.linkTo(nominal);

Expand Down
2 changes: 1 addition & 1 deletion test-suite/lowdiscrepancysequences.cpp
Expand Up @@ -1058,7 +1058,7 @@ void LowDiscrepancyTest::testSobolSkipping() {
SobolRsg::SobolLevitanLemieux };

for (auto& integer : integers) {
for (unsigned long& j : dimensionality) {
for (Size& j : dimensionality) {
for (unsigned long& k : skip) {

// extract n samples
Expand Down

0 comments on commit 63571f4

Please sign in to comment.