|
From: Brian S. <bri...@gm...> - 2020-09-19 17:32:12
|
Hi, I understand that one way to create an index in QuantLib is, ext::shared_ptr<IborIndex> myIndex(new Euribor1M(termStructure)); However in my case the information like Euribor1M is variable and stored in another variable like, std::string getIndex = "Euribor1M"; I am looking for some way to pass the variable getIndex, instead Euribor1M directly, to create appropriate index based on my dynamic situation. Is there any possible way to achieve this? |