Bugs item #2115805, was opened at 2008-09-17 11:10
Message generated for change (Comment added) made by lballabio You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2115805&group_id=12740 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Bug in SavedSettings? Initial Comment: SavedSettings::~SavedSettings() { try { Settings::instance().evaluationDate() == evaluationDate_; Settings::instance().enforcesTodaysHistoricFixings() = enforcesTodaysHistoricFixings_; } catch (...) { // nothing we can do except bailing out. } } evaluationDate() returns DateProxy&, then DateProxy do not have operator==(): Settings::instance().evaluationDate() == evaluationDate_; ---------------------------------------------------------------------- Comment By: Luigi Ballabio (lballabio) Date: 2008-09-18 15:58 Message: You're right---I looked at the equality out of context. It should have been an assignment instead. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2008-09-17 13:00 Message: Line with code: "Settings::instance().evaluationDate() == evaluationDate_;" have any meanings? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2008-09-17 12:46 Message: MS VC 2k5 sp1: error C2678: binary '==' : no operator found which takes a left-hand operand of type 'Settings::DateProxy' (or there is no acceptable conversion) ---------------------------------------------------------------------- Comment By: Luigi Ballabio (lballabio) Date: 2008-09-17 12:40 Message: DateProxy has an operator Date(), so evaluationDate() is implicitly converted to Date and Date::operator== is used in the comparison. Did you try compiling it? Does it give you any errors? If so, what compiler and operating system are you using? Luigi ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2115805&group_id=12740 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ QuantLib-dev mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-dev |
Free forum by Nabble | Edit this page |