From efb1c78cb845764327dc78eaced2f423972421b4 Mon Sep 17 00:00:00 2001 From: klaus spanderen Date: Sun, 10 Nov 2024 14:12:11 +0100 Subject: [PATCH] fixed typo --- ql/instruments/basketoption.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ql/instruments/basketoption.hpp b/ql/instruments/basketoption.hpp index fd0ee4bd127..3e8c4837654 100644 --- a/ql/instruments/basketoption.hpp +++ b/ql/instruments/basketoption.hpp @@ -80,7 +80,7 @@ namespace QuantLib { a.begin(), Real(0.0)); } - Array weights() const { return weights_; } + const Array& weights() const { return weights_; } private: Array weights_;