mirror of
https://github.com/Cantera/cantera.git
synced 2026-08-19 01:14:44 -05:00
The ThermoPhase/Kinetics/Transport views borrow handles owned by a Solution and hold a reference to it so that the Solution cannot be finalized while a view is still reachable. That reference was stored in an `Any` field, leaving the structs abstractly typed; make it a type parameter instead. Add a test covering the lifetime guarantee. Each view is built from its own Solution, since views sharing one Solution keep each other's owner alive and would mask a regression in any single accessor.