[Issue 5683] Calling .clear on a fresh associative array causes subsequent segfault
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 19 12:59:33 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5683
dawg at dawgfoto.de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dawg at dawgfoto.de
--- Comment #3 from dawg at dawgfoto.de 2011-07-19 12:54:13 PDT ---
A quickfix if urgently needed by anybody is to add a static init method to the
template AA structure.
struct AssociativeArray(Key, Value)
{
static Value[Key] init() @property
{
void* p;
return *cast(Value[Key]*)(&p);
}
}
--
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