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

Ed Schouten ed at nuxi.nl
Wed Jun 15 11:37:10 UTC 2016


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;

-- 
Ed Schouten <ed at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717


More information about the freebsd-hackers mailing list