Date: Wed, 15 Jun 2016 18:52:31 +0200 From: Dimitry Andric <dimitry@andric.com> To: Joerg Sonnenberger <joerg@bec.de> 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: <23CADB2F-45EB-451D-BD14-D46EAD44C7EC@andric.com> In-Reply-To: <20160615132059.GC2114@britannica.bec.de> 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> <20160615132059.GC2114@britannica.bec.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_5CFD8E84-7A2E-4A22-910B-D53AEB3CB7A4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 15 Jun 2016, at 15:20, Joerg Sonnenberger <joerg@bec.de> wrote: >=20 > On Wed, Jun 15, 2016 at 11:54:17AM +0200, Dimitry Andric wrote: >> This patch should hopefully work. I do not have the port itself, so = I could not compile-test it. >>=20 >> diff --git a/include/LoopClosing.h b/include/LoopClosing.h >> index b1736fe..5d80d02 100644 >> --- a/include/LoopClosing.h >> +++ b/include/LoopClosing.h >> @@ -47,7 +47,7 @@ public: >>=20 >> typedef pair<set<KeyFrame*>,int> ConsistentGroup; >> typedef map<KeyFrame*,g2o::Sim3,std::less<KeyFrame*>, >> - Eigen::aligned_allocator<std::pair<const KeyFrame*, = g2o::Sim3> > > KeyFrameAndPose; >> + Eigen::aligned_allocator<std::pair<KeyFrame const*, = g2o::Sim3> > > KeyFrameAndPose; >=20 > That's a stylistic change only: > const foo * =3D=3D foo const * !=3D foo * const. Yeah sorry, I realized that only after sending, it should indeed be "KeyFrame* const", e.g the pointer itself (which is the key to for std::map<>) should be const, not the thing pointed to. -Dimitry --Apple-Mail=_5CFD8E84-7A2E-4A22-910B-D53AEB3CB7A4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAldhh9QACgkQsF6jCi4glqMKiACg6rpsEENBMUkZfoSb9V03JC1d nZcAoJQ76enMKrVM938MzSLJfH7FQ4hJ =+Jj4 -----END PGP SIGNATURE----- --Apple-Mail=_5CFD8E84-7A2E-4A22-910B-D53AEB3CB7A4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23CADB2F-45EB-451D-BD14-D46EAD44C7EC>