Bugs item #1905131, was opened at 2008-03-01 16:42 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=723099&aid=1905131&group_id=132078
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: Tim Ansell (mithro) Assigned to: Nobody/Anonymous (nobody) Summary: typedef all the ids and similar Initial Comment: It would be good if you typedef all the various ID types. This has two advantages, it makes the code more self documenting. It also means that at a later state if the id's change to being a different size, the code doesn't break. typedef ResourceId uint32_t; // A map between resource id's and amounts. std::map<ResourceId, uint32_t> amounts; // Function which returns a resourceid ResourceId getId(); // Function which returns a map like the above std::map<ResourceId, uint32_t> getResourceAmounts(); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=723099&aid=1905131&group_id=132078 _______________________________________________ tp-bugs mailing list [email protected] http://mail.thousandparsec.net/cgi-bin/mailman/listinfo/tp-bugs
