Shared library and smart pointers

From other forum - is possible returns smart pointer between DLL,.so method boundary.

Table *soGetTable(Client *client, char *name)
{
//
return client->Table(*tn).release(); //<====== here
}

And on the other side of the call, do:

std::unique_ptr<Table> ptr;
ptr.reset(soGetTable(param, param));

Must be the same CRT. Is possible extract new,delete methods to shared library uses by both:program and shared library?
From other forum - is possible returns smart pointer between DLL,.so method boundary.
Yes.

Is possible extract new,delete methods to shared library uses by both:program and shared library?
Why do you want to do something like that?
Topic archived. No new replies allowed.