Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2013 08:46:18 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Shane Ambler <FreeBSD@ShaneWare.Biz>
Cc:        Tijl Coosemans <tijl@coosemans.org>, David Chisnall <theraven@FreeBSD.org>, Steve Kargl <sgk@troutmask.apl.washington.edu>, freebsd-current@FreeBSD.org
Subject:   Re: Are clang++ and libc++ compatible?
Message-ID:  <DA4EBEAD-B265-47F7-860F-998B5D8368A3@FreeBSD.org>
In-Reply-To: <52832A63.1000601@ShaneWare.Biz>
References:  <20131112163219.GA2834@troutmask.apl.washington.edu> <77CB2B92-216A-4C80-B033-7E582B5F0DFC@FreeBSD.org> <20131112165422.GA2939@troutmask.apl.washington.edu> <E0FE40D9-726C-4501-B31A-3622510C1C68@FreeBSD.org> <20131112175556.GA3319@troutmask.apl.washington.edu> <20131112201922.GA4330@troutmask.apl.washington.edu> <20131112221946.78602db0@kalimero.tijl.coosemans.org> <52832A63.1000601@ShaneWare.Biz>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <FreeBSD@ShaneWare.Biz> 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<std::string, TreeElement>::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<Entry> messages;
> to -
> std::deque<std::unique_ptr<Entry>> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DA4EBEAD-B265-47F7-860F-998B5D8368A3>