Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.c++ > #4616

Re: Dubbio dichiarazione unique_ptr

X-Received by 10.200.47.116 with SMTP id k49mr4438054qta.28.1513138190722; Tue, 12 Dec 2017 20:09:50 -0800 (PST)
X-Received by 10.31.148.200 with SMTP id w191mr618580vkd.11.1513138190542; Tue, 12 Dec 2017 20:09:50 -0800 (PST)
Path csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!m31no58388qtf.0!news-out.google.com!t48ni114qtc.1!nntp.google.com!g35no56718qtk.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups it.comp.lang.c++
Date Tue, 12 Dec 2017 20:09:50 -0800 (PST)
In-Reply-To <9c2148d5-1352-44cc-ac46-79d8503e69fa@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2601:142:4:bd70:b99b:e8fc:4986:de0b; posting-account=1eJCLwoAAABlJYtob7BNXhaUiELT5TkO
NNTP-Posting-Host 2601:142:4:bd70:b99b:e8fc:4986:de0b
References <9c2148d5-1352-44cc-ac46-79d8503e69fa@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <66dcf9b5-e894-4482-9cea-7f0f6eba4be7@googlegroups.com> (permalink)
Subject Re: Dubbio dichiarazione unique_ptr
From fmassei@gmail.com
Injection-Date Wed, 13 Dec 2017 04:09:50 +0000
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
Lines 9
Xref csiph.com it.comp.lang.c++:4616

Show key headers only | View raw


On Tuesday, December 12, 2017 at 4:07:40 AM UTC-5, Emanuele Merlo wrote:
> Mi trovo in un caso reale che posso semplificare così:
> <snip>
> Qual è la dichiarazione corretta?

A me pare un po' convoluto...
- perché non chiamare il semplice costruttore di copia?
- se vuoi un puntatore unico, perché non fare un singleton?

Ciao!

Back to it.comp.lang.c++ | Previous | NextPrevious in thread | Find similar


Thread

Dubbio dichiarazione unique_ptr Emanuele Merlo <emanuele.merlo@gmail.com> - 2017-12-12 01:07 -0800
  Re: Dubbio dichiarazione unique_ptr Emanuele Merlo <emanuele.merlo@gmail.com> - 2017-12-12 01:16 -0800
  Re: Dubbio dichiarazione unique_ptr enoquick <enoquick@gmail.com> - 2017-12-12 21:35 -0600
    Re: Dubbio dichiarazione unique_ptr Emanuele Merlo <emanuele.merlo@gmail.com> - 2017-12-13 00:39 -0800
  Re: Dubbio dichiarazione unique_ptr fmassei@gmail.com - 2017-12-12 20:09 -0800

csiph-web