From 1276915597341241049
X-Google-Thread: f78e5,6f5c74c3d7959916,start
X-Google-NewGroupId: yes
X-Google-Attributes: gid7894ca11fe,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.205.131.16 with SMTP id ho16mr1397505bkc.3.1335550334370;
        Fri, 27 Apr 2012 11:12:14 -0700 (PDT)
MIME-Version: 1.0
Path: h15ni172354bkw.0!nntp.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news2.arglkargh.de!news.albasani.net!.POSTED!not-for-mail
From: Jason McKesson <jmckesson@gmail.com>
Newsgroups: comp.std.c++
Subject: make_shared and friends.
Date: Fri, 27 Apr 2012 11:12:10 -0700 (PDT)
Organization: http://groups.google.com
Lines: 13
Sender: std-cpp-request@vandevoorde.com
Approved: james.dennett@gmail.com
Message-ID: <5583145.28.1335476739188.JavaMail.geo-discussion-forums@ynnn35>
NNTP-Posting-Host: zZwntwsfU85Nkedpe6s2Byd9HB/f63nBDCWiW56vjuQ=
X-Trace: news.albasani.net Wn6rF0fcnnz4XLRTItAGmJS9xIOCc4BxgCnV9qsqDubkikFlsOcJTVScA0Ao+1hFAxPzNcmiflG161lLz/w5hw==
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Fri, 27 Apr 2012 18:12:13 +0000 (UTC)
X-Mailer: Perl5 Mail::Internet v2.05
X-Submission-Address: std-cpp-submit@vandevoorde.com
Cancel-Lock: sha1:x4PxxdX/OQwzLRugesD8ri7Vwik=
X-Original-Date: Thu, 26 Apr 2012 14:45:39 -0700 (PDT)
X-Received-Bytes: 1699
Content-Type: text/plain; charset=ISO-8859-1

Does the C++11 specification allow you to say that the `make_shared`
template is a friend, and thus guarantee that it can access the
appropriate private constructors of a class? Yes, there is syntax that
would make `make_shared` a friend. But does the spec *require* that
the constructors are called directly from `make_shared` itself, since
it cannot transfer friendship to any subsidiary object types?


--
[ comp.std.c++ is moderated.  To submit articles, try posting with your ]
[ newsreader.  If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]


