Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"When the going gets tough, the tough get empirical." -- Jon Carroll


devel / comp.lang.c++ / "Inside STL: The shared_ptr constructor and enable_shared_from_this" by Raymond Chen

SubjectAuthor
o "Inside STL: The shared_ptr constructor and enable_shared_from_this"Lynn McGuire

1
"Inside STL: The shared_ptr constructor and enable_shared_from_this" by Raymond Chen

<ubm6lb$3ucmb$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1049&group=comp.lang.c%2B%2B#1049

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lynnmcgu...@gmail.com (Lynn McGuire)
Newsgroups: comp.lang.c++
Subject: "Inside STL: The shared_ptr constructor and enable_shared_from_this"
by Raymond Chen
Date: Thu, 17 Aug 2023 17:23:38 -0500
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <ubm6lb$3ucmb$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 17 Aug 2023 22:23:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="569a35c0f61c2082a3569fe49640e9f0";
logging-data="4141771"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KnRh+1Xz7oCPm+9kuIhEG2aIv6mBA1Y4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:LeT4dH90a0AhrhEkLtRqwEOTmMI=
Content-Language: en-US
 by: Lynn McGuire - Thu, 17 Aug 2023 22:23 UTC

"Inside STL: The shared_ptr constructor and enable_shared_from_this" by
Raymond Chen
https://devblogs.microsoft.com/oldnewthing/20230816-00/

"If you create a class of the form"

struct S : std::enable_shared_from_this<S>
{ /* ... */
};

"which derives from std::enable_shared_from_this of itself (using the
curiously recurring template pattern), then this class becomes a
candidate for special treatment by shared_ptr: The shared_from_this()
method will produce a shared_ptr<S>. Some restrictions apply."

Lynn


devel / comp.lang.c++ / "Inside STL: The shared_ptr constructor and enable_shared_from_this" by Raymond Chen

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor