Re: re ference of boost::shared_ptr instead of Handle
Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/reference-of-boost-shared-ptr-instead-of-Handle-tp7623p7652.html
On Wed, 2009-09-02 at 05:23 -0700, Andrew Kolesnikov wrote:
> template <class T>
> inline Handle<T>::Handle(T* ptr_h,
> bool registerAsObserver)
> : link_(new Link(boost::shared_ptr<T> (ptr_h),registerAsObserver)) {}
>
> Is it possible to add such constructor in new QL version, cause i guess it's
> more easy-to-use (and i use it successfully)?
Done, thanks.
Luigi
--
Present to inform, not to impress; if you inform, you will impress.
-- Fred Brooks
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users