Skip to content

Commit c97d49e

Browse files
Add explicit conversion to Real in inner_product
1 parent ac4b749 commit c97d49e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-suite/basketoption.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ BOOST_AUTO_TEST_CASE(testSingleFactorBsmBasketEngine) {
18681868
);
18691869

18701870
const Real strike = std::inner_product(
1871-
t.weights.begin(), t.weights.end(), t.underlyings.begin(), 0.0
1871+
t.weights.begin(), t.weights.end(), t.underlyings.begin(), Real(0.0)
18721872
);
18731873

18741874
const ext::shared_ptr<PlainVanillaPayoff> payoff

0 commit comments

Comments
 (0)