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

Otacílio otacilio.neto at bsd.com.br
Wed Jun 15 11:42:16 UTC 2016


Em 15/06/2016 08:37, Ed Schouten escreveu:
> 2016-06-15 11:54 GMT+02:00 Dimitry Andric <dim at freebsd.org>:
>> -        Eigen::aligned_allocator<std::pair<const KeyFrame*, g2o::Sim3> > > KeyFrameAndPose;
>> +        Eigen::aligned_allocator<std::pair<KeyFrame const*, g2o::Sim3> > > KeyFrameAndPose;
> Looking at the patch for Node, a const keyword should be added to the
> type itself, right?
>
> Eigen::aligned_allocator<std::pair<const KeyFrame * const, g2o::Sim3>
>>> KeyFrameAndPose;

No, I have tested with

Eigen::aligned_allocator<std::pair<KeyFrame const*, g2o::Sim3> > > KeyFrameAndPose;

and

Eigen::aligned_allocator<std::pair<const KeyFrame*, g2o::Sim3> > > KeyFrameAndPose;

And nothing works. :(

[]'s
-Otacílio



More information about the freebsd-hackers mailing list