🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309417

Re: Sprytne wskaźniki a dll czy shared object

#309417
From: Borneq
Date: Wed, 30 Aug 2017 13:44
17 lines
1433 bytes
W dniu 30.08.2017 o 15:16, Borneq pisze:
> potem auto table = client->Table(*tn);

Konkretnie :
   auto client = std::make_unique<Client>(*conf);
   auto table = client->Table(*tn);

table jest sprytnym wskaźnikiem
jeśli będę miał funkcję eksportowaną:

Table *soGetTable(Cleitn *client, char *name)
{
//...tn na podstawie nazwy,
     return client->Table(*tn).get();  //<====== get()!
}
to mi zwolni wskaźnik, ponieważ chyba jest unique_ptr<Client>
i tu mam kłopot
Technical Details
Message-ID: <oo6ffc$v73$1@node1.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <oo6dqg$tes$1@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Borneq <borneq@antyspam.hidden.pl>
Newsgroups: pl.comp.lang.c
Subject: Re: Sprytne wskaźniki a dll czy shared object
Date: Wed, 30 Aug 2017 15:44:14 +0200
Organization: ATMAN - ATM S.A.
Lines: 17
Message-ID: <oo6ffc$v73$1@node1.news.atman.pl>
References: <oo6dqg$tes$1@node1.news.atman.pl>
NNTP-Posting-Host: 91.239.205.105
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1504100652 31971 91.239.205.105 (30 Aug 2017 13:44:12 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Wed, 30 Aug 2017 13:44:12 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
In-Reply-To: <oo6dqg$tes$1@node1.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit