Skip to content

Commit 919f38e

Browse files
committed
Use static_assert in handleFromVariant
1 parent 46a3903 commit 919f38e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ql/quote.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace QuantLib {
3232
} else if constexpr (std::is_same_v<T, Handle<Quote>>) {
3333
return x;
3434
} else {
35-
QL_FAIL("Unexpected type in quote variant");
35+
static_assert(false, "Unexpected type in quote variant");
3636
}
3737
},
3838
value);

0 commit comments

Comments
 (0)