QuantLib icon indicating copy to clipboard operation
QuantLib copied to clipboard

MultiCubicSpline references an out-of-scope temporary if ae is defaulted in ctor

Open pcaspers opened this issue 8 months ago • 2 comments

https://github.com/lballabio/QuantLib/blob/50ab670d72c3b64d07c7a8dd7f6a43582604f3f9/ql/math/interpolations/multicubicspline.hpp#L496

We might change the member to a non-reference type or change the ctor argument to optional<vector>?

pcaspers avatar Mar 31 '25 10:03 pcaspers

Yes, we can probably make that member a non-reference.

lballabio avatar Apr 03 '25 14:04 lballabio

Yep, that's a good solution I think.

pcaspers avatar Apr 17 '25 17:04 pcaspers

This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.

github-actions[bot] avatar Jun 17 '25 02:06 github-actions[bot]