Skip to content

Commit b160ac3

Browse files
committed
Revert "Allow zero fixing time"
This reverts commit c89ddc1.
1 parent f34fd74 commit b160ac3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ql/indexes/iborindex.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ namespace QuantLib {
5353
}
5454

5555
Rate IborIndex::forecastFixing(const Time& fixingTime) const {
56-
QL_REQUIRE(fixingTime >= 0.0, "\n cannot calculate forward rate, " \
57-
"fixing time must not be negative");
56+
QL_REQUIRE(fixingTime > 0.0, "\n cannot calculate forward rate, " \
57+
"fixing time must be positive");
5858
QL_REQUIRE(!termStructure_.empty(),
5959
"null term structure set to this instance of " << name());
6060
Time tenorTime = periodToTime(tenor_);

0 commit comments

Comments
 (0)