|
From: Luigi B. <lui...@gm...> - 2023-03-20 14:32:08
|
Hello,
you're treating warnings as errors. You can change that flag.
To avoid the warning entirely, don't include <ql/quantlib.hpp> and use the
specific headers you need instead.
This said, I wouldn't trust ChatGPT too much. You should instantiate a
FixedRateBond, not FixedRateBondHelper.
Hope this helps,
Luigi
On Mon, Mar 20, 2023 at 1:08 AM Donghee Shim <dh7...@gm...> wrote:
> Hello, Quantlib Community !
>
> My simple code is
> https://github.com/ShimDonghee/Bond/blob/main/FixedRateBond22.cpp
>
> This code is generating FixedRateBond from BondHelper. GTP gave me this
> code for my request.
>
> But when I built this code with VS2022, error
> "\lib\QuantLib-1.29\ql\termstructures\yield\drifttermstructure.hpp(86,24):
> error C4996: 'QuantLib::DriftTermStructure': deprecated .." occurred.
>
> I don't use DriftTermStructure in this code.
>
> How can I fix it?
>
> Thanks!
>
> Best Regards
>
> Shim Donghee
> _______________________________________________
> QuantLib-users mailing list
> Qua...@li...
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>
|