From owner-freebsd-hackers@freebsd.org Tue Jun 14 21:15:00 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3C96B72928 for ; Tue, 14 Jun 2016 21:15:00 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ACB0E2E77 for ; Tue, 14 Jun 2016 21:15:00 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [172.16.0.93] (AMarseille-651-1-108-23.w109-208.abo.wanadoo.fr [109.208.187.23]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 00FCE7B7F; Tue, 14 Jun 2016 23:14:55 +0200 (CEST) Subject: Re: /usr/include/c++/v1/map:837:5: error: static_assert failed "Allocator::value_type must be same type as value_type" Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_EA0408CC-A41C-4219-BF93-035B3B3DC532"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: Date: Tue, 14 Jun 2016 23:14:49 +0200 Cc: freebsd-hackers@freebsd.org Message-Id: References: To: =?utf-8?Q?Otac=C3=ADlio?= X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2016 21:15:01 -0000 --Apple-Mail=_EA0408CC-A41C-4219-BF93-035B3B3DC532 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 14 Jun 2016, at 06:05, Otac=C3=ADlio = wrote: >=20 > I'm getting this error when I try compile the ORB-SLAM2 library. Some = one can give me a hint about it? >=20 >=20 > /usr/include/c++/v1/map:837:5: error: static_assert failed = "Allocator::value_type must be same type as value_type" > static_assert((is_same::value), Typically, this is because the allocator for std::map must use a const key, and libc++ now checks for this with a static assertion. See for example this fix for www/node: = https://svnweb.freebsd.org/ports/head/www/node/files/patch-deps_v8_src_com= piler_instruction.h?view=3Dmarkup&pathrev=3D412412 -Dimitry --Apple-Mail=_EA0408CC-A41C-4219-BF93-035B3B3DC532 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.30 iEYEARECAAYFAldgc88ACgkQsF6jCi4glqMrswCfcF/SMUIp+X/sr2pGhQ5kbupS mWEAn0BL05PTDIwu4LRqrjbaN1HR4TPI =exs9 -----END PGP SIGNATURE----- --Apple-Mail=_EA0408CC-A41C-4219-BF93-035B3B3DC532--