[QuantLibAddin-cvs] QuantLibAddin/qlo conversions.hpp,1.16,1.17
Brought to you by:
ericehlers,
nando
|
From: Eric E. <eri...@us...> - 2006-10-19 11:16:39
|
Update of /cvsroot/quantlibaddin/QuantLibAddin/qlo In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv19633/qlo Modified Files: conversions.hpp Log Message: reverse default behavior for invalid index handles: - by default, raise an exception when an invalid index ID is provided - when XML says "failIfEmpty='false'", then return an empty object instead Index: conversions.hpp =================================================================== RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/conversions.hpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** conversions.hpp 30 Aug 2006 15:32:03 -0000 1.16 --- conversions.hpp 19 Oct 2006 11:16:34 -0000 1.17 *************** *** 111,115 **** inline boost::shared_ptr<qlClass> enumOrObject( const std::string &id, ! bool failIfEmpty = false) { if (id.empty()) { if (failIfEmpty) --- 111,115 ---- inline boost::shared_ptr<qlClass> enumOrObject( const std::string &id, ! bool failIfEmpty = true) { if (id.empty()) { if (failIfEmpty) |