#584 Replace SmartPointer by shared_ptr
Metadata
Property | Value |
---|---|
Reported by | Oliver Sander (oliver.sander@tu-dresden.de) |
Reported at | Aug 5, 2009 09:21 |
Type | Feature Request |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Oliver Sander (oliver.sander@tu-dresden.de) |
Last edited at | Oct 26, 2009 12:53 |
Closed by | Oliver Sander (oliver.sander@tu-dresden.de) |
Closed at | Oct 26, 2009 12:53 |
Closed in version | Unknown |
Resolution | Fixed |
Comment | Please reopen if additional problems appear. |
Description
The class SmartPointer in dune-common implements a reference-counting pointer. Such a pointer is also available under the name of shared_ptr in tr1 and C++0x. In order to follow existing standards as much as possible I propose to deprecate SmartPointer, use shared_ptr instead, and offer a simple fallback implementation of shared_ptr for systems without tr1.