[QuantLibAddin-cvs] QuantLibAddin/qlo handle.hpp,1.2,1.3
Brought to you by:
ericehlers,
nando
|
From: Eric E. <eri...@us...> - 2006-11-22 21:37:29
|
Update of /cvsroot/quantlibaddin/QuantLibAddin/qlo In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv15842/qlo Modified Files: handle.hpp Log Message: support for coercion Index: handle.hpp =================================================================== RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/handle.hpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** handle.hpp 16 Jun 2006 10:14:30 -0000 1.2 --- handle.hpp 22 Nov 2006 21:37:26 -0000 1.3 *************** *** 32,35 **** --- 32,37 ---- } void linkTo(const boost::shared_ptr<T> &observable) { + QL_REQUIRE(observable, "Error relinking handle of type " + << typeid(this).name() << " - input object is null"); handle_.linkTo(observable); } |