W dniu 30.09.2017 o 14:51, Ted Yu pisze:
bq. smart pointers, which hinders simple pointers values as arguments and
return values

I don't quite get what you meant. Can you elaborate ?

My trial exported function:

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


pointer will be freed because is smart and soGetTable returns bad pointer.

Reply via email to