The documentation for the class puntoexe::ptr is misleading

Issue #18 resolved
Paolo Brandoli repo owner created an issue

The documentation states: "This class must be used to allocate objects derived from the class baseObject. "

This is incorrect. The class tracks the usage of objects derived from puntoexe::baseObject, and automatically deletes them when they reference counter reaches 0. It's the only class that can delete an object derived from puntoexe::baseObject.

Comments (2)

  1. Paolo Brandoli reporter

    Correction: the ptr class is the only one that can call release on a baseObject. Only baseObject can delete itself.

  2. Log in to comment