process: enable_shared_from_this to allow callers to get valid references

This commit is contained in:
skypjack
2025-07-28 14:20:38 +02:00
parent 71c217da28
commit f4b960dc93

View File

@@ -69,7 +69,7 @@ struct process_adaptor;
* @tparam Allocator Type of allocator used to manage memory and elements.
*/
template<typename Delta, typename Allocator>
class basic_process {
class basic_process: std::enable_shared_from_this<basic_process<Delta, Allocator>> {
enum class state : std::uint8_t {
idle = 0,
running,