cashFlows.emplace_back(SimpleCashFlow(2.0, d1));
The elements in CashFlows are shared_ptr. Therefore you should pass an argument to emplace_back out of which a shared_ptr may be constructed.So change the above line to:cashFlows.emplace_back(new SimpleCashFlow(2.0, d1));Alternatively usecashFlows.push_back( boost::shared_ptr<CashFlow>(new SimpleCashFlow(2.0, d1)) );Good luck,Yannis
Free forum by Nabble | Disable Popup Ads | Edit this page |