[QuantLibAddin-cvs] QuantLibAddin/qlo handle.hpp,1.1,1.2
Brought to you by:
ericehlers,
nando
|
From: Eric E. <eri...@us...> - 2006-06-16 10:14:33
|
Update of /cvsroot/quantlibaddin/QuantLibAddin/qlo In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv6228/qlo Modified Files: handle.hpp Log Message: support for - objects as input parameters which may default to null pointers - instantiation of a QuantLib::Handle which is not linked to an Observable Index: handle.hpp =================================================================== RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/handle.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** handle.hpp 15 Jun 2006 19:03:52 -0000 1.1 --- handle.hpp 16 Jun 2006 10:14:30 -0000 1.2 *************** *** 28,32 **** public: Handle(const boost::shared_ptr<T> &observable) { ! handle_.linkTo(observable); } void linkTo(const boost::shared_ptr<T> &observable) { --- 28,33 ---- public: Handle(const boost::shared_ptr<T> &observable) { ! if (observable) ! handle_.linkTo(observable); } void linkTo(const boost::shared_ptr<T> &observable) { |