std.container / tightArray / class (de)allocators

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Wed Jun 16 02:39:48 PDT 2010


On Wed, 16 Jun 2010 10:04:05 +0200, Stephan wrote:
> Btw. I downloaded the new dmd(2047) and tried to use this new Array
> template. But it does not seem to work:
> 
> import std.container;
> 
> void main()
> {
> 	Array!(int) a;
> }
> 
> //src\phobos\std\container.d(1660): Error: function
> core.stdc.stdlib.free (void* ptr) is not callable using argument types
> (int[])
> //src\phobos\std\container.d(1660): Error: cannot implicitly convert
> expression ((*this._data)._payload) of type int[] to void*
> 
> 
> is it my fault? does anyone else have this problem?

It's a bug (and a strange one at that).  I've checked in a fix, see:

http://d.puremagic.com/issues/show_bug.cgi?id=4327

-Lars


More information about the Digitalmars-d mailing list