[Issue 5667] "clear" does not call destructors on structs embedded in	structs
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Feb 28 11:26:16 PST 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=5667
--- Comment #2 from Max Samukha <samukha at voliacable.com> 2011-02-28 11:23:27 PST ---
(In reply to comment #1)
> This does work:
> 
>     auto buf = malloc(size)[0..size];
>     auto c = emplace!C(buf);
>     clear(c);
> 
Damn, of course. Sorry.
-- 
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