mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-18 09:50:35 -05:00
Replace use of raw pointers and explicit reference counting with `std::shared_ptr<>`. Use a discriminated union to store either the bottom level or a call/file context in each heap-allocated entry. This avoids storing a copy of the bottom in every `cmListFileBacktrace` instance and shrinks the structure to a single `shared_ptr`.
4.7 KiB
4.7 KiB