Trouble with destroy
Namespace
rswhite4 at googlemail.com
Mon Sep 23 12:06:46 PDT 2013
Code:
----
import std.stdio;
struct A {
public:
int[4] val;
alias val this;
}
void main()
{
A a;
a.destroy();
}
----
/d824/f630.d(13): Error: template object.destroy matches more
than one template declaration,
/opt/compilers/dmd2/include/object.di(593):destroy(T)(ref T obj)
if (is(T == struct)) and
/opt/compilers/dmd2/include/object.di(604):destroy(T : U[n], U,
ulong n)(ref T obj)
Nice. What should I do?
More information about the Digitalmars-d-learn
mailing list