From owner-freebsd-hackers@freebsd.org Wed Jun 15 16:52:43 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 035E8A45E93 for ; Wed, 15 Jun 2016 16:52:43 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BF64A1825 for ; Wed, 15 Jun 2016 16:52:42 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from [172.16.0.93] (AMarseille-651-1-119-43.w2-4.abo.wanadoo.fr [2.4.6.43]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id D8F6D7D1A; Wed, 15 Jun 2016 18:52:38 +0200 (CEST) Subject: Re: /usr/include/c++/v1/map:837:5: error: static_assert failed "Allocator::value_type must be same type as value_type" Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_5CFD8E84-7A2E-4A22-910B-D53AEB3CB7A4"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: <20160615132059.GC2114@britannica.bec.de> Date: Wed, 15 Jun 2016 18:52:31 +0200 Cc: freebsd-hackers@freebsd.org Message-Id: <23CADB2F-45EB-451D-BD14-D46EAD44C7EC@andric.com> References: <20160615132059.GC2114@britannica.bec.de> To: Joerg Sonnenberger X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2016 16:52:43 -0000 --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 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,int> ConsistentGroup; >> typedef map, >> - Eigen::aligned_allocator > > KeyFrameAndPose; >> + Eigen::aligned_allocator > > 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--