Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jun 2016 23:14:49 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        =?utf-8?Q?Otac=C3=ADlio?= <otacilio.neto@bsd.com.br>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: /usr/include/c++/v1/map:837:5: error: static_assert failed "Allocator::value_type must be same type as value_type"
Message-ID:  <F34B797C-7A4A-4110-A457-CE439EEA9715@FreeBSD.org>
In-Reply-To: <e4c2cba6-7643-9032-8304-b2fce04c32b6@bsd.com.br>
References:  <e4c2cba6-7643-9032-8304-b2fce04c32b6@bsd.com.br>

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

--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 <otacilio.neto@bsd.com.br> =
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<typename allocator_type::value_type, =
value_type>::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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F34B797C-7A4A-4110-A457-CE439EEA9715>