
On Sun, 2005-05-08 at 19:47, Bob Jamison wrote:
/usr/local/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/ve ctor.tcc:284: error: no matching function for call to 'std::_Vector_base<Inkscape::Debug::Heap*, Inkscape::GC::Alloc<Inkscape::Debug::Heap*, MANUAL>
::_Vector_impl::construct(Inkscape::Debug::Heap** const&,
Inkscape::Debug::Heap* const&)' ./gc-alloc.h:54: note: candidates are: void Inkscape::GC::Alloc<T, collect>::construct(T*, T&) [with T = Inkscape::Debug::Heap*, Inkscape::GC::CollectionPolicy collect = MANUAL] make[2]: *** [debug/heap.o] Error 1
Aha. The second argument declared for GC::Alloc<...>::construct ought to be a const reference, since it should generally get passed a const reference.
I'm surprised it compiles with earlier versions of gcc. Very basic const-correctness issue.
I'll commit a fix to CVS. Let me know if you spot any other issues.
-mental