You mean something like std::shared_ptr<void>? Theoretically you can use it, use std::static_pointer_cast to use it as a pointer to a specific type and create shared pointers with a custom deleter, where you decide how you want to delete the data
Found some article about it https://www.nextptr.com/tutorial/ta1227747841/the-stdshared_ptrvoid-as-arbitrary-userdata-pointer
this->src = std::static_pointer_cast<void>(std::make_shared<dppsrc>); Like this?
sorry?
It's another bot
I'm not sure, never used it myself
What's wrong with std::shared_ptr<void>?
it can't be static_casted
What do you want to cast it to?
shared_ptr<some class>
Some class is not void
are you even reading the conversation?
What exactly do I need to read? 🤔
you don't need to cast it though...
Обсуждают сегодня