Date: Tue, 14 Jun 2016 13:25:07 -0400 From: ADAM David Alan Martin <adamartin.freebsd.org@gmail.com> To: =?UTF-8?B?T3RhY8OtbGlv?= <otacilio.neto@bsd.com.br>, 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: <57603DF3.5000400@gmail.com> 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
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rqbKoA0X45bsrt59sbcXm5el3vjoXCfL7 Content-Type: multipart/mixed; boundary="eRAPfn41KoGlEBAdf9sVnofQf6fEqGKNp" From: ADAM David Alan Martin <adamartin.freebsd.org@gmail.com> Reply-To: ADAM David Alan Martin <adamartin@freebsd.org> To: =?UTF-8?B?T3RhY8OtbGlv?= <otacilio.neto@bsd.com.br>, freebsd-hackers@freebsd.org Message-ID: <57603DF3.5000400@gmail.com> Subject: Re: /usr/include/c++/v1/map:837:5: error: static_assert failed "Allocator::value_type must be same type as value_type" References: <e4c2cba6-7643-9032-8304-b2fce04c32b6@bsd.com.br> In-Reply-To: <e4c2cba6-7643-9032-8304-b2fce04c32b6@bsd.com.br> --eRAPfn41KoGlEBAdf9sVnofQf6fEqGKNp Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, On 06/14/16 00:05, Otac=C3=ADlio wrote: > I'm getting this error when I try compile the ORB-SLAM2 library. Some > one can give me a hint about it? > > > /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), It sounds like the code is using an STL allocator in a way which worked prior to C++11/14 changes to allocators. Could you post more of the compiler output? Is this a port in the ports tree? If not, could you point me at the source of ORB-SLAM2? > Thanks a lot. > > -Otac=C3=ADlio Regards, --=20 ADAM David Alan Martin --eRAPfn41KoGlEBAdf9sVnofQf6fEqGKNp-- --rqbKoA0X45bsrt59sbcXm5el3vjoXCfL7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXYD3zAAoJEJlQhGNp3mNxeSUP/2tTJPdxw75r8MdD6CUTpQWY VwXxT1phIzuePOqQfwAoGOddw7b81lwRllx0xsJTjYgUMqLaKW05Q7ylYzs+L40T BXBvumsX54W7wEJb17zvVzeDKH8weW5PXUzHv+auK1Zy/lPzaiVQGBg5ZJKeDP2r VzeWDWv4KZOwg/df31QYJt0543TRbwiWwRpjAWr9jCYJ6yGbL1uzhEZOfHednL7g E/s2S+wt8Hq5dpkLqttQuZE7jU0tPx8rZpoNnL/NPOdRAjOVkKyYG0o/XYvU/wPE 8kbPAKN/SehB3cdGTqmDxJTe7g3Ht4M2lPfmCEtCQd/WAHt3JzI3AGWies/UD4fl KcMQuXC2A6KaCxNShHlKcDherAtBxqInwgxT54C+W9godKpnBBYoFzivtWPfEqsg tdc6sPinJA3I4DPRU3M8x/8Yccmp9DaOZPThy8/eEMiBafOPGEzjBNA9QN7/1uFt v9kDphYYtVloRfX67abAYVAfUWz8Gd6RYPl1TfcYIszFEI5fT1ohBE9aJKoxFXtJ Emky48BAtvXqAXAE34kRR8TBViY3bzF0HPX2qTwoU05LSZTrnzS0fPO5rSfAn7It Kp9AlCEGlyqmB5pApAQsvA2eIXawviOPF9nJ7T7sJwsJQGqgh/l4jddAQ7L28Ts1 vOFOo7hu22TEWychF9p7 =Sr1d -----END PGP SIGNATURE----- --rqbKoA0X45bsrt59sbcXm5el3vjoXCfL7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57603DF3.5000400>