[ quantlib-Bugs-2115805 ] Bug in SavedSettings?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Bugs-2115805 ] Bug in SavedSettings?

SourceForge.net
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

-------------------------------------------------------------------------
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