Initialise dynamic array in array of structures

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 22 12:28:40 PDT 2016


On Wednesday, 22 June 2016 at 09:27:01 UTC, cym13 wrote:
> On the other hand I don't see why you'd expect {} to call 
> postblit at
> all.

'cause it essentially makes a copy. i gave the sample in 
bugreport. it worth me a hour of debugging to find why my 
refcounted struct keep crashing with invalid counter.


More information about the Digitalmars-d-learn mailing list