|
From: SourceForge.net <no...@so...> - 2008-09-17 03:40:57
|
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-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 |