From owner-freebsd-hackers@freebsd.org Wed Jun 15 13:21:03 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 4C6A9A31598 for ; Wed, 15 Jun 2016 13:21:03 +0000 (UTC) (envelope-from joerg@bec.de) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:c:538::196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1A6E61D6A for ; Wed, 15 Jun 2016 13:21:02 +0000 (UTC) (envelope-from joerg@bec.de) Received: from britannica.bec.de (p20030057E2138604E939E2FA9CF0BE7D.dip0.t-ipconnect.de [IPv6:2003:57:e213:8604:e939:e2fa:9cf0:be7d]) (Authenticated sender: joerg@bec.de) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 07DFF1720DB for ; Wed, 15 Jun 2016 15:21:00 +0200 (CEST) Date: Wed, 15 Jun 2016 15:20:59 +0200 From: Joerg Sonnenberger To: 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: <20160615132059.GC2114@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) 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 13:21:03 -0000 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. > > 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: > > typedef pair,int> ConsistentGroup; > typedef map, > - Eigen::aligned_allocator > > KeyFrameAndPose; > + Eigen::aligned_allocator > > KeyFrameAndPose; That's a stylistic change only: const foo * == foo const * != foo * const. Joerg