Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jun 2016 08:41:58 -0300
From:      =?UTF-8?B?T3RhY8OtbGlv?= <otacilio.neto@bsd.com.br>
To:        Ed Schouten <ed@nuxi.nl>
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:  <5abbb990-1741-4a18-08cf-e0e89173294c@bsd.com.br>
In-Reply-To: <CABh_MKnmzZwyBmNARRhvSjwjFK0gsaoOPzJcqVSYkL6f8TXSng@mail.gmail.com>
References:  <e4c2cba6-7643-9032-8304-b2fce04c32b6@bsd.com.br> <F34B797C-7A4A-4110-A457-CE439EEA9715@FreeBSD.org> <bea2418d-5e1d-2cac-0500-773c2c9ca0ff@bsd.com.br> <FB887E8B-03E4-4592-B137-470766CEC0CC@FreeBSD.org> <CABh_MKnmzZwyBmNARRhvSjwjFK0gsaoOPzJcqVSYkL6f8TXSng@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Em 15/06/2016 08:37, Ed Schouten escreveu:
> 2016-06-15 11:54 GMT+02:00 Dimitry Andric <dim@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5abbb990-1741-4a18-08cf-e0e89173294c>