RelinkableHandle
Posted by emmajyu on
URL: http://quantlib.414.s1.nabble.com/RelinkableHandle-tp14336.html
Hi,
I have problem understanding the Handle, RelinkableHandle classes.
Why do we need the RelinkableHandle?
Here is function of linkTo in the RelinkableHandle class:
template
inline void RelinkableHandle::linkTo(const boost::shared_ptr& h,
bool registerAsObserver) {
this->link_->linkTo(h,registerAsObserver);
}
It does not do anything different from the base class but calling the baseClass link_->linkTo, I dont see diff from the base class here at all.
Why do we still need the RelinkableHandle class?
Thanks a lot for your help!