[Issue 4942] New: Cannot use std.container.Array with a struct as type parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 26 00:52:59 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4942
Summary: Cannot use std.container.Array with a struct as type
parameter
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: rsaarelm at gmail.com
--- Comment #0 from Risto Saarelma <rsaarelm at gmail.com> 2010-09-26 00:52:15 PDT ---
Tried to build the following on 64-bit Linux with DMD v2.049:
----
import std.container;
struct X {
int a;
}
void main() {
auto c = Array!X();
}
----
I get this error message:
src/phobos/std/container.d(1485): Error: template instance template 'hasElabo
rateDestructor' is not defined
src/phobos/std/container.d(1485): Error: hasElaborateDestructor!(X) is not an
expression
It looks like hasElaborateDestructor is not defined anywhere in the source
tree.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list