Blender Git Loki

Git Commits -> Revision ded4dc7

Revision ded4dc7 by Jacques Lucke (master)
July 5, 2021, 11:02 (GMT)
BLI: add conversion constructor for destruct_ptr

This allows converting between different `destruct_ptr` types (which is
just a `std::unique_ptr` with a custom deleter).

The most common use case is to convert from a derived type to
the type of the base class.

Commit Details:

Full Hash: ded4dc77618c105aa6a5d25d480f9e23a1523b93
Parent Commit: dc3f46d
Lines Changed: +6, -0

1 Modified Path:

/source/blender/blenlib/BLI_memory_utils.hh (+6, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021