Date: Wed, 15 Jun 2016 15:20:59 +0200 From: Joerg Sonnenberger <joerg@bec.de> 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> In-Reply-To: <FB887E8B-03E4-4592-B137-470766CEC0CC@FreeBSD.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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<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; That's a stylistic change only: const foo * == foo const * != foo * const. Joerg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160615132059.GC2114>