/usr/include/c++/v1/map:837:5: error: static_assert failed "Allocator::value_type must be same type as value_type"

ADAM David Alan Martin adamartin.freebsd.org at gmail.com
Tue Jun 14 17:25:16 UTC 2016


Hi,


On 06/14/16 00:05, Otacílio 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ílio

Regards,

-- 
ADAM David Alan Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20160614/06f7af82/attachment.sig>


More information about the freebsd-hackers mailing list