From owner-freebsd-current@FreeBSD.ORG Wed Nov 13 07:46:28 2013 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C7C89B59; Wed, 13 Nov 2013 07:46:28 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 83ADF2B0D; Wed, 13 Nov 2013 07:46:28 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::d18c:20bf:ce3b:e453] (unknown [IPv6:2001:7b8:3a7:0:d18c:20bf:ce3b:e453]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 194E95C43; Wed, 13 Nov 2013 08:46:23 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_BB35E160-ADA6-419E-88B7-4FCC0C494202"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: Are clang++ and libc++ compatible? From: Dimitry Andric In-Reply-To: <52832A63.1000601@ShaneWare.Biz> Date: Wed, 13 Nov 2013 08:46:18 +0100 Message-Id: References: <20131112163219.GA2834@troutmask.apl.washington.edu> <77CB2B92-216A-4C80-B033-7E582B5F0DFC@FreeBSD.org> <20131112165422.GA2939@troutmask.apl.washington.edu> <20131112175556.GA3319@troutmask.apl.washington.edu> <20131112201922.GA4330@troutmask.apl.washington.edu> <20131112221946.78602db0@kalimero.tijl.coosemans.org> <52832A63.1000601@ShaneWare.Biz> To: Shane Ambler X-Mailer: Apple Mail (2.1822) Cc: Tijl Coosemans , David Chisnall , Steve Kargl , freebsd-current@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Nov 2013 07:46:28 -0000 --Apple-Mail=_BB35E160-ADA6-419E-88B7-4FCC0C494202 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=iso-8859-1 On 13 Nov 2013, at 08:29, Shane Ambler wrote: > On 13/11/2013 07:49, Tijl Coosemans wrote: ... >> There's a similar problem with graphics/blender. There's a class >> TreeElement which links to its parent TreeElement like this: >> >> std::map::const_iterator parent; >> >> Works with libstdc++, fails with libc++. If the standard doesn't >> specify this it would still be a very convenient extension. >> > > A possible solution I found looking into this is to wrap the Entry > reference in a std::unique_ptr - so changing - > std::deque messages; > to - > std::deque> messages; > > This turns messages into a pointer so you need to change > messages.date into messages->date With pan, this is not so easy, unfortunately. It needs changes all over the place to make it work. There was a patch for pkgsrc [1] which attempted this, but it was backed out because it caused crashes. -Dimitry [1] http://mail-index.netbsd.org/pkgsrc-changes/2013/06/16/msg091009.html --Apple-Mail=_BB35E160-ADA6-419E-88B7-4FCC0C494202 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlKDLk4ACgkQsF6jCi4glqMKqwCfS9owFajqzF9xGXhQwvP/dMxd ywEAnivrD+YnXlS5HJ3Bba4LSkuQ07sv =lMiM -----END PGP SIGNATURE----- --Apple-Mail=_BB35E160-ADA6-419E-88B7-4FCC0C494202--