Re: [eigen] pathCC and Eigen

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Thanks Gael! :) That was fast. You guys rock.

Is it already in trunk? I can give it a try in a few hours.

Cheers,
Radu.
--
Point Cloud Library (PCL) - http://pointclouds.org

On 06/13/2011 11:47 PM, Gael Guennebaud wrote:
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








Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/