termStructure_.linkTo( boost::shared_ptr<TermStructure>( new FlatForward(today_,settlement_, 0.05,Actual360())));
termStructure_.linkTo(flatRate(settlement_,0.05,Actual360()));
    void initialize() {        nominals_ = std::vector<Real>(1,100.0);        frequency_ = Semiannual;        index_ = boost::shared_ptr<Xibor>(                            new Euribor(12/frequency_,Months,termStructure_));        calendar_ = index_->calendar();        convention_ = ModifiedFollowing;        today_ = calendar_.adjust(Date::todaysDate());        settlementDays_ = 2;        fixingDays_ = 2;        settlement_ = calendar_.advance(today_,settlementDays_,Days);        termStructure_.linkTo(              boost::shared_ptr<TermStructure>(                                           new FlatForward(today_,settlement_,                                                           0.05,Actual360())));    }