termStructure_.linkTo( boost::shared_ptr<TermStructure>(new FlatForward(today_,settlement_, 0.05,Actual365())));
termStructure_.linkTo(flatRate(settlement_,0.05,Actual365()));
    void initialize() {        payFixed_ = true;        settlementDays_ = 2;        fixingDays_ = 2;        nominal_ = 100.0;        fixedConvention_ = Unadjusted;        floatingConvention_ = ModifiedFollowing;        fixedFrequency_ = Annual;        floatingFrequency_ = Semiannual;        fixedDayCount_ = Thirty360();        index_ = boost::shared_ptr<Xibor>(                                     new Euribor(12/floatingFrequency_,Months,                                                 termStructure_));        calendar_ = index_->calendar();        today_ = calendar_.adjust(Date::todaysDate());        settlement_ = calendar_.advance(today_,settlementDays_,Days);        termStructure_.linkTo(          boost::shared_ptr<TermStructure>(new FlatForward(today_,settlement_,                                                           0.05,Actual365())));    }