Jump to content
  • Advertisement

King of Men

Member
  • Content Count

    1515
  • Joined

  • Last visited

Community Reputation

394 Neutral

About King of Men

  • Rank
    Contributor

Personal Information

  • Interests
    Design
    Programming
  1. Turns out I was looking up an un-initialised variable, interpreting it as double, and consistently getting NaN in one case and some small but numerical value in the other. Not sure why the variable location should so consistently flip me between NaN and number, though. Unless perhaps it is the struct layout that does it; the value in question comes from dereferencing the end of that map.
  2. Nope, the members are all independent. Good one, though - I'll keep it in mind for the future.
  3. So if I declare my class this way: private: vector<ContractInfo*> obligations; map<EconActor*, double> borrowers; double discountRate; then my unit tests fail. But if I do it this way: private: double discountRate; vector<ContractInfo*> obligations; map<EconActor*, double> borrowers; they pass. My heart fills with unbounded joy at the thought of tracking this one down...   I suspect I have a destructor somewhere that I ought to have declared virtual, but didn't. Any better guesses?
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!