| | Phrog Tutorial - Smart Pointers (Site not responding. Last check: 2007-10-19) |
 | | With smart pointers, we can't use a typecasting, because we don't have a reference to the object. |
 | | In general it is not allowed to assign a regular pointer to a smart pointer, except for newly created objects (this is not a technical problem but rather a safety precaution to prevent pointing to the same object by both a regular pointer and a smart pointer). |
 | | There are situations when smart pointers are unnecessary, for example, nodes in a graph need not be smart pointed, as they will be removed when the graph is deallocated. |
| ai.stanford.edu /~frog/tutorial-session1a.html (413 words) |