[mapguide-internals] RE: RE: Coding Standards

Jackie Ng jumpinjackie at gmail.com
Wed Feb 2 19:58:17 EST 2011


As someone who is starting to get his hands *real* dirty with the internals
of the MapGuide Source, a primer on the proper usage of the Ptr<> smart
pointer template in the most common scenarios:

  1. Variable assignment
  2. Returning values
  3. Casting
  4. Usage when stored as a class member variable

As well as when to use the SAFE_ADDREF and SAFE_RELEASE macros, would be a
most welcome addition to this document and other budding non-Autodesk
MapGuide developers

- Jackie
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Coding-Standards-tp1821966p5987147.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.


More information about the mapguide-internals mailing list