Re: [eigen] pathCC and Eigen |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] pathCC and Eigen
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Tue, 14 Jun 2011 08:47:28 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=cnodHgtSJCAYzlhp0iO4z7zyBbqhyITt4813YIZka2Y=; b=mvuusfuBeJy2YQt4Pn3fZjLPWWBDs2esR0zUacqZ7TGGiBPk1dF4wPXk6uPBj6RPVj fCegtjXWRm8x7VrRpXAO/fVsD8DelI3g7NAsVcfguG6/9VRVHO1Ln8xI3p7hMCKftjT8 YsFx4PLgS/GTnJsqRYXOCQ4QFZWDeWl1Z5d/A=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=R6JItL5e4v5DfiemZLSFlMuB2VD1aOBk/UP78YspAH7aCsD9VaRjQWKMSAPlevmO5Q kZ2LbVZ0i4cGGWe1p8SYLTi9Nv3TwHy/z2KBHwC+iDiHIdKe3azw1mgytEwXSE2lYa1p +vmn3wbpVSVjLcsjPgTC1s17jM72SiuaKDc1w=
hi,
indeed, the interface of the allocate function should be:
pointer allocate(size_type num, const void* hint = 0),
so basically, const void* instead of const_pointer*.
I'm committing the fix.
gael
On Tue, Jun 14, 2011 at 2:34 AM, Radu B. Rusu <rusu@xxxxxxxxxxxxxxxx> wrote:
> Hi all,
>
> I'm trying to get our project (PCL) to compile with pathCC, and ran into an
> eigen allocator issue. Has anyone seen this in the past, or has any idea how
> to solve it? Thanks
>
>
> /work/local/opt/ekopath-4.0.10/include/4.0.10/stl/vector.ipp:85: error: no
> matching function for call to 'std::vector<Foo,
> Eigen::aligned_allocator_indirection<Foo>
>>::_C_VectorAlloc::allocate(size_t&, std::vector<Foo,
> Eigen::aligned_allocator_indirection<Foo> >* const)'
> /usr/include/eigen3/Eigen/src/Core/util/Memory.h:618: note: candidates are:
> T* Eigen::aligned_allocator<T>::allocate(size_t, const T**) [with T = Foo]
>
>
> The structure basically looks like:
>
> std::vector<Foo, Eigen::aligned_allocator<Foo> > Bar;
>
>
> --
> Cheers,
> Radu.
> --
> Point Cloud Library (PCL) - http://pointclouds.org
>
>
>